Klasse TCSObjectEvent

java.lang.Object
org.opentcs.data.TCSObjectEvent
Alle implementierten Schnittstellen:
Serializable

public class TCSObjectEvent extends Object implements Serializable
Instances of this class represent events emitted by/for business objects.
Siehe auch:
  • Konstruktordetails

    • TCSObjectEvent

      public TCSObjectEvent(TCSObject<?> currentObjectState, TCSObject<?> previousObjectState, TCSObjectEvent.Type eventType)
      Creates a new TCSObjectEvent.
      Parameter:
      currentObjectState - The current state of the object for which this event was created. Value is irrelevant/may be null if eventType is OBJECT_REMOVED.
      previousObjectState - The previous state of the object for which this event was created.Value is irrelevant/may be null if eventType is OBJECT_CREATED.
      eventType - The event's type.
      Löst aus:
      NullPointerException - If eventType is null.
      IllegalArgumentException - If either currentObjectState or previousObjectState is null while eventType does not have an appropriate value.
  • Methodendetails

    • getCurrentObjectState

      public TCSObject<?> getCurrentObjectState()
      Returns the current state of the object for which this event was created.
      Gibt zurück:
      The current state of the object for which this event was created.
    • getPreviousObjectState

      public TCSObject<?> getPreviousObjectState()
      Returns the previous state of the object for which this event was created.
      Gibt zurück:
      The previous state of the object for which this event was created.
    • getCurrentOrPreviousObjectState

      public TCSObject<?> getCurrentOrPreviousObjectState()
      Returns the current state of the object for which this event was created, or, if the current state is null, the previous state.
      Gibt zurück:
      The current or the previous state of the object for which this event was created.
    • getType

      public TCSObjectEvent.Type getType()
      Returns this event's type.
      Gibt zurück:
      This event's type.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object