- java.lang.Object
-
- org.praxislive.core.Packet
-
- All Implemented Interfaces:
Comparable<Packet>
- Direct Known Subclasses:
Call
public class Packet extends Object implements Comparable<Packet>
Superclass of Call. Intended to allow future support for atomic Call bundles.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Packet obj)
Compare Packets and order them by timeCode and ID.int
id()
Get the ID of this Packet.String
rootID()
Get the ID of the Root component that this packet should be sent to.long
time()
Get the time that this Packet should be processed, relative toRootHub.getClock()
-
-
-
Method Detail
-
time
public final long time()
Get the time that this Packet should be processed, relative toRootHub.getClock()
- Returns:
- long time
-
rootID
public final String rootID()
Get the ID of the Root component that this packet should be sent to.- Returns:
- String Root ID
-
id
public final int id()
Get the ID of this Packet.- Returns:
- long ID
-
compareTo
public final int compareTo(Packet obj)
Compare Packets and order them by timeCode and ID.- Specified by:
compareTo
in interfaceComparable<Packet>
- Parameters:
obj
-- Returns:
- int
-
-