Class Packet

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 Details

    • time

      public final long time()
      Get the time that this Packet should be processed, relative to RootHub.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 interface Comparable<Packet>
      Parameters:
      obj -
      Returns:
      int