flowsim.core
Interface Packet
- All Known Implementing Classes:
- NextHopPacket
- public abstract interface Packet
Simulation of a single packet with a flow. The packet is simulated by
keeping the flow running for the amount of time needed to transport all the
data. The data contained in the packet is represented by a Message object,
which determines the it's size and what should be done when the packet
arrives on a node. To define new messages sub-class Message, not Packet!
- See Also:
Message
get_msg
public Message get_msg()
- Get message contained in this packet.
get_remaining_bits
public int get_remaining_bits()
- Get bits which remain to be transmitted.
start
public void start()
- Start transmission.