Package se.sics.kompics.network.test
Class TestHeader
java.lang.Object
se.sics.kompics.network.test.TestHeader
- All Implemented Interfaces:
Serializable
,Header<TestAddress>
public class TestHeader extends Object implements Header<TestAddress>, Serializable
- Author:
- Lars Kroll <[email protected]>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description TestAddress
dst
Transport
proto
TestAddress
src
-
Constructor Summary
Constructors Constructor Description TestHeader(TestAddress src, TestAddress dst, Transport proto)
-
Method Summary
Modifier and Type Method Description TestAddress
getDestination()
Where is the message supposed to go.Transport
getProtocol()
What protocol should be used to send the message.TestAddress
getSource()
Where does the message come from.
-
Field Details
-
Constructor Details
-
Method Details
-
getProtocol
Description copied from interface:Header
What protocol should be used to send the message. Note that not all network implementations have to implement all the available protocols.- Specified by:
getProtocol
in interfaceHeader<TestAddress>
- Returns:
-
getSource
Description copied from interface:Header
Where does the message come from.- Specified by:
getSource
in interfaceHeader<TestAddress>
- Returns:
-
getDestination
Description copied from interface:Header
Where is the message supposed to go.- Specified by:
getDestination
in interfaceHeader<TestAddress>
- Returns:
-