Klasse ModelTransitionEvent

java.lang.Object
org.opentcs.access.ModelTransitionEvent
Alle implementierten Schnittstellen:
Serializable

public class ModelTransitionEvent extends Object implements Serializable
Emitted when the kernel loads a model.
Siehe auch:
  • Konstruktordetails

    • ModelTransitionEvent

      public ModelTransitionEvent(String oldModelName, String newModelName, boolean modelContentChanged, boolean transitionFinished)
      Creates a new TCSModelTransitionEvent.
      Parameter:
      oldModelName - The name of the previously loaded model.
      newModelName - The name of the new model.
      modelContentChanged - Whether the content of the model actually changed with the transition.
      transitionFinished - Whether the transition to the new model is finished, yet.
  • Methodendetails

    • getOldModelName

      public String getOldModelName()
      Returns the model name the kernel is leaving.
      Gibt zurück:
      The model the kernel is leaving.
    • getNewModelName

      public String getNewModelName()
      Returns the model for which this event was generated.
      Gibt zurück:
      The model for which this event was generated.
    • hasModelContentChanged

      public boolean hasModelContentChanged()
      Returns true if, and only if, the content of the model actually changed with the transition.
      Gibt zurück:
      true if, and only if, the content of the model actually changed with the transition.
    • isTransitionFinished

      public boolean isTransitionFinished()
      Returns true if, and only if, the transition to the new kernel state is finished.
      Gibt zurück:
      true if, and only if, the transition to the new kernel state is finished.
    • toString

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