Alle implementierten Schnittstellen:
ICapsuleCallback, IGraphCallback, IParseablePASSProcessModelElement, IImplementingElement, IImplementingElementT<IState>, IPASSProcessModelElement, IState, IMacroState, IStateReference, IBehaviorDescribingComponent, IContainableElement<ISubjectBehavior>, IHasSimple2DVisualizationBox, IValueChangedObserver<IPASSProcessModelElement>, IValueChangedPublisher<IPASSProcessModelElement>
Bekannte direkte Unterklassen:
ChoiceSegment, ChoiceSegmentPath, GenericReturnToOriginReference, GroupState, InitialStateOfChoiceSegmentPath, MacroState, ParsedStateReferenceStub, StandardPASSState, StatePlaceholder

public class State extends BehaviorDescribingComponent implements IStateReference, IMacroState
Class that represents a state
  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • get2DPageRatio

      public double get2DPageRatio()
      Beschreibung aus Schnittstelle kopiert: IHasSimple2DVisualizationBox
      The relative positions of the simple 2D visualizations are given in % of page height and width No absolute values are given but a page ratio that defines whether it is a wide or tall format
      Angegeben von:
      get2DPageRatio in Schnittstelle IHasSimple2DVisualizationBox
      Gibt zurück:
    • set2DPageRatio

      public void set2DPageRatio(double has2DPageRatio)
      Angegeben von:
      set2DPageRatio in Schnittstelle IHasSimple2DVisualizationBox
    • getRelative2DHeight

      public double getRelative2DHeight()
      Beschreibung aus Schnittstelle kopiert: IHasSimple2DVisualizationBox
      The relative height of 2D object (depending on the page ratio)
      Angegeben von:
      getRelative2DHeight in Schnittstelle IHasSimple2DVisualizationBox
      Gibt zurück:
    • setRelative2DHeight

      public void setRelative2DHeight(double relative2DHeight)
      Angegeben von:
      setRelative2DHeight in Schnittstelle IHasSimple2DVisualizationBox
    • getRelative2DWidth

      public double getRelative2DWidth()
      Beschreibung aus Schnittstelle kopiert: IHasSimple2DVisualizationBox
      The relative width of 2D object (depending on the page ratio)
      Angegeben von:
      getRelative2DWidth in Schnittstelle IHasSimple2DVisualizationBox
      Gibt zurück:
    • setRelative2DWidth

      public void setRelative2DWidth(double relative2DWidth)
      Angegeben von:
      setRelative2DWidth in Schnittstelle IHasSimple2DVisualizationBox
    • getRelative2DPosX

      public double getRelative2DPosX()
      Beschreibung aus Schnittstelle kopiert: IHasSimple2DVisualizationBox
      The relative width of 2D object (depending on the page ratio)
      Angegeben von:
      getRelative2DPosX in Schnittstelle IHasSimple2DVisualizationBox
      Gibt zurück:
    • setRelative2DPosX

      public void setRelative2DPosX(double relative2DPosX)
      Angegeben von:
      setRelative2DPosX in Schnittstelle IHasSimple2DVisualizationBox
    • getRelative2DPosY

      public double getRelative2DPosY()
      Beschreibung aus Schnittstelle kopiert: IHasSimple2DVisualizationBox
      The relative position (Y) of 2D object (depending on the page ratio)
      Angegeben von:
      getRelative2DPosY in Schnittstelle IHasSimple2DVisualizationBox
      Gibt zurück:
    • setRelative2DPosY

      public void setRelative2DPosY(double relative2DPosY)
      Angegeben von:
      setRelative2DPosY in Schnittstelle IHasSimple2DVisualizationBox
    • getClassName

      public String getClassName()
      Beschreibung aus Klasse kopiert: PASSProcessModelElement
      public static CultureInfo customCulture = new CultureInfo("en-US"); static PASSProcessModelElement(){ customCulture.NumberFormat.NumberDecimalSeparator = "."; }
      Angegeben von:
      getClassName in Schnittstelle IParseablePASSProcessModelElement
      Setzt außer Kraft:
      getClassName in Klasse BehaviorDescribingComponent
      Gibt zurück:
      The name of the current class
    • getParsedInstance

      public IParseablePASSProcessModelElement getParsedInstance()
      Angegeben von:
      getParsedInstance in Schnittstelle IParseablePASSProcessModelElement
      Setzt außer Kraft:
      getParsedInstance in Klasse BehaviorDescribingComponent
    • addIncomingTransition

      public void addIncomingTransition(ITransition transition)
      Beschreibung aus Schnittstelle kopiert: IState
      Method that sets the incoming transition attribute of the instance
      Angegeben von:
      addIncomingTransition in Schnittstelle IState
      Parameter:
      transition - incoming transition attribute
    • getIncomingTransitions

      public Map<String,ITransition> getIncomingTransitions()
      Method that returns the incoming transition attribute of the instance
      Angegeben von:
      getIncomingTransitions in Schnittstelle IState
      Gibt zurück:
      The incoming transition attribute of the instance
    • addOutgoingTransition

      public void addOutgoingTransition(ITransition transition)
      Beschreibung aus Schnittstelle kopiert: IState
      Method that sets the outgoing transition attribute of the instance
      Angegeben von:
      addOutgoingTransition in Schnittstelle IState
      Parameter:
      transition - outgoing transition attribute
    • setOutgoingTransitions

      public void setOutgoingTransitions(Set<ITransition> transitions, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IState
      Overrides the outgoing transitions for the state
      Angegeben von:
      setOutgoingTransitions in Schnittstelle IState
      Parameter:
      transitions - The new outgoing transitions
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setOutgoingTransitions

      public void setOutgoingTransitions(Set<ITransition> transitions)
      Beschreibung aus Schnittstelle kopiert: IState
      Overrides the outgoing transitions for the state
      Angegeben von:
      setOutgoingTransitions in Schnittstelle IState
      Parameter:
      transitions - The new outgoing transitions
    • setIncomingTransitions

      public void setIncomingTransitions(Set<ITransition> transitions, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IState
      Overrides the incoming transitions for the state
      Angegeben von:
      setIncomingTransitions in Schnittstelle IState
      Parameter:
      transitions - The new incoming transitions
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setIncomingTransitions

      public void setIncomingTransitions(Set<ITransition> transitions)
      Beschreibung aus Schnittstelle kopiert: IState
      Overrides the incoming transitions for the state
      Angegeben von:
      setIncomingTransitions in Schnittstelle IState
      Parameter:
      transitions - The new incoming transitions
    • removeOutgoingTransition

      public void removeOutgoingTransition(String modelCompID, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IState
      Deletes a transition from the outgoing transitions
      Angegeben von:
      removeOutgoingTransition in Schnittstelle IState
      Parameter:
      modelCompID - The id of the outgoing transition
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • removeOutgoingTransition

      public void removeOutgoingTransition(String modelCompID)
      Beschreibung aus Schnittstelle kopiert: IState
      Deletes a transition from the outgoing transitions
      Angegeben von:
      removeOutgoingTransition in Schnittstelle IState
      Parameter:
      modelCompID - The id of the outgoing transition
    • removeIncomingTransition

      public void removeIncomingTransition(String modelCompID, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IState
      Deletes a transition from the incoming transitions
      Angegeben von:
      removeIncomingTransition in Schnittstelle IState
      Parameter:
      modelCompID - The id of the incoming transition
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • removeIncomingTransition

      public void removeIncomingTransition(String modelCompID)
      Beschreibung aus Schnittstelle kopiert: IState
      Deletes a transition from the incoming transitions
      Angegeben von:
      removeIncomingTransition in Schnittstelle IState
      Parameter:
      modelCompID - The id of the incoming transition
    • getOutgoingTransitions

      public Map<String,ITransition> getOutgoingTransitions()
      Method that returns the outgoing transition attribute of the instance
      Angegeben von:
      getOutgoingTransitions in Schnittstelle IState
      Gibt zurück:
      The outgoing transition attribute of the instance
    • setFunctionSpecification

      public void setFunctionSpecification(IFunctionSpecification funSpec, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IState
      Method that sets the function specification attribute of the instance
      Angegeben von:
      setFunctionSpecification in Schnittstelle IState
      Parameter:
      funSpec - function specification attribute
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setFunctionSpecification

      public void setFunctionSpecification(IFunctionSpecification funSpec)
      Beschreibung aus Schnittstelle kopiert: IState
      Method that sets the function specification attribute of the instance
      Angegeben von:
      setFunctionSpecification in Schnittstelle IState
      Parameter:
      funSpec - function specification attribute
    • getFunctionSpecification

      public IFunctionSpecification getFunctionSpecification()
      Beschreibung aus Schnittstelle kopiert: IState
      Method that returns the function specification attribute of the instance
      Angegeben von:
      getFunctionSpecification in Schnittstelle IState
      Gibt zurück:
      The function specification attribute of the instance
    • setGuardBehavior

      public void setGuardBehavior(IGuardBehavior guardBehav, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IState
      Method that sets the guard behavior attribute of the instance
      Angegeben von:
      setGuardBehavior in Schnittstelle IState
      Parameter:
      guardBehav - guard behavior attribute
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setGuardBehavior

      public void setGuardBehavior(IGuardBehavior guardBehav)
      Beschreibung aus Schnittstelle kopiert: IState
      Method that sets the guard behavior attribute of the instance
      Angegeben von:
      setGuardBehavior in Schnittstelle IState
      Parameter:
      guardBehav - guard behavior attribute
    • getGuardBehavior

      public IGuardBehavior getGuardBehavior()
      Beschreibung aus Schnittstelle kopiert: IState
      Method that returns the guard behavior attribute of the instance
      Angegeben von:
      getGuardBehavior in Schnittstelle IState
      Gibt zurück:
      The guard behavior attribute of the instance
    • generateAction

      protected void generateAction(IAction newGeneratedAction)
    • generateAction

      protected void generateAction()
    • getAction

      public IAction getAction()
      Beschreibung aus Schnittstelle kopiert: IState
      Method that returns the action attribute (describing the bundle of state and outgoing transitions). No setter exists, because the action is atomatically created and should not be modified.
      Angegeben von:
      getAction in Schnittstelle IState
      Gibt zurück:
      The action attribute of the instance
    • isStateType

      public boolean isStateType(IState.StateType stateType)
      Beschreibung aus Schnittstelle kopiert: IState
      Checks if the state is of the given type
      Angegeben von:
      isStateType in Schnittstelle IState
      Parameter:
      stateType - the specified type
      Gibt zurück:
      true if the state is of this type
    • setIsStateType

      public void setIsStateType(IState.StateType stateType)
      Beschreibung aus Schnittstelle kopiert: IState
      ets a new type for this state. This must not override the old type, a state can have multiple types at once. Used to make state i.e. an EndState, declared finalized, abstract...
      Angegeben von:
      setIsStateType in Schnittstelle IState
      Parameter:
      stateType - the new state type
    • removeStateType

      public void removeStateType(IState.StateType stateType)
      Beschreibung aus Schnittstelle kopiert: IState
      Removes a type from the list of types this state currently is of.
      Angegeben von:
      removeStateType in Schnittstelle IState
      Parameter:
      stateType - the type that is removed
    • parseAttribute

      protected boolean parseAttribute(String predicate, String objectContent, String lang, String dataType, IParseablePASSProcessModelElement element)
      Beschreibung aus Klasse kopiert: PASSProcessModelElement
      Gets called while parsing a triple from a set of triples where this element is subject. The predicate and objectContent are derived directly from the triple, lang and dataType might be null (they will never both be NonNull at the same time) If the object specifies an uri to another element and the collection of all available elements contains this element, the element is passed as well
      Setzt außer Kraft:
      parseAttribute in Klasse BehaviorDescribingComponent
      Parameter:
      predicate - the predicate contained by the triple
      objectContent - the content of the object contained by the triple
      lang - the lang attribute of the object if one was specified
      dataType - the datatype attribute of the object if one was specified
      element - the element the objectContent points to (if it does and the element exists)
      Gibt zurück:
    • getAllConnectedElements

      Setzt außer Kraft:
      getAllConnectedElements in Klasse BehaviorDescribingComponent
    • updateRemoved

      public void updateRemoved(IPASSProcessModelElement update, IPASSProcessModelElement caller, int removeCascadeDepth)
      Angegeben von:
      updateRemoved in Schnittstelle IValueChangedObserver<IPASSProcessModelElement>
      Setzt außer Kraft:
      updateRemoved in Klasse PASSProcessModelElement
    • updateRemoved

      public void updateRemoved(IPASSProcessModelElement update, IPASSProcessModelElement caller)
      Angegeben von:
      updateRemoved in Schnittstelle IValueChangedObserver<IPASSProcessModelElement>
      Setzt außer Kraft:
      updateRemoved in Klasse PASSProcessModelElement
    • notifyModelComponentIDChanged

      public void notifyModelComponentIDChanged(String oldID, String newID)
      Angegeben von:
      notifyModelComponentIDChanged in Schnittstelle IGraphCallback
      Angegeben von:
      notifyModelComponentIDChanged in Schnittstelle IValueChangedObserver<IPASSProcessModelElement>
      Setzt außer Kraft:
      notifyModelComponentIDChanged in Klasse PASSProcessModelElement
    • setReferencedState

      public void setReferencedState(IState state, int removeCascadeDepth)
      Sets a state that is referenced by this state. According to the PASS standard, this functionality belongs to the "StateReference" class. Here, this functionality is inside the state class and should be used if the current instance should be a StateReference
      Angegeben von:
      setReferencedState in Schnittstelle IStateReference
      Parameter:
      state - The referenced state
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setReferencedState

      public void setReferencedState(IState state)
      Sets a state that is referenced by this state. According to the PASS standard, this functionality belongs to the "StateReference" class. Here, this functionality is inside the state class and should be used if the current instance should be a StateReference
      Angegeben von:
      setReferencedState in Schnittstelle IStateReference
      Parameter:
      state - The referenced state
    • getReferencedState

      public IState getReferencedState()
      Gets the state that is referenced by this state. According to the PASS standard, this functionality belongs to the "StateReference" class. Here, this functionality is inside the state class and should be used if the current instance should be a StateReference
      Angegeben von:
      getReferencedState in Schnittstelle IStateReference
      Gibt zurück:
      The referenced state
    • isReference

      public boolean isReference()
    • register

      public boolean register(IValueChangedObserver<IPASSProcessModelElement> observer)
      Beschreibung aus Schnittstelle kopiert: IValueChangedPublisher
      Registers an observer
      Angegeben von:
      register in Schnittstelle IValueChangedPublisher<IPASSProcessModelElement>
      Setzt außer Kraft:
      register in Klasse PASSProcessModelElement
      Parameter:
      observer - the observer
      Gibt zurück:
    • unregister

      public boolean unregister(IValueChangedObserver<IPASSProcessModelElement> observer, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IValueChangedPublisher
      De-registers an observer
      Angegeben von:
      unregister in Schnittstelle IValueChangedPublisher<IPASSProcessModelElement>
      Setzt außer Kraft:
      unregister in Klasse PASSProcessModelElement
      Parameter:
      observer - the observer
      removeCascadeDepth - An integer parsing the depth of a cascading delete after this unregister method has been called
      Gibt zurück:
    • unregister

      public boolean unregister(IValueChangedObserver<IPASSProcessModelElement> observer)
      Beschreibung aus Schnittstelle kopiert: IValueChangedPublisher
      De-registers an observer
      Angegeben von:
      unregister in Schnittstelle IValueChangedPublisher<IPASSProcessModelElement>
      Setzt außer Kraft:
      unregister in Klasse PASSProcessModelElement
      Parameter:
      observer - the observer
      Gibt zurück:
    • setImplementedInterfacesIDReferences

      public void setImplementedInterfacesIDReferences(Set<String> implementedInterfacesIDs)
      Beschreibung aus Schnittstelle kopiert: IImplementingElement
      Sets the set of implemented interfaces for the instance
      Angegeben von:
      setImplementedInterfacesIDReferences in Schnittstelle IImplementingElement
      Parameter:
      implementedInterfacesIDs - The set of implemented interfaces
    • addImplementedInterfaceIDReference

      public void addImplementedInterfaceIDReference(String implementedInterfaceID)
      Beschreibung aus Schnittstelle kopiert: IImplementingElement
      Adds an implemented interface
      Angegeben von:
      addImplementedInterfaceIDReference in Schnittstelle IImplementingElement
      Parameter:
      implementedInterfaceID - The set of implemented interfaces
    • removeImplementedInterfacesIDReference

      public void removeImplementedInterfacesIDReference(String implementedInterfaceID)
      Beschreibung aus Schnittstelle kopiert: IImplementingElement
      Removes a specified interface from the set of implemented interfaces.
      Angegeben von:
      removeImplementedInterfacesIDReference in Schnittstelle IImplementingElement
      Parameter:
      implementedInterfaceID - the id of the interface that should be removed
    • getImplementedInterfacesIDReferences

      public Set<String> getImplementedInterfacesIDReferences()
      Beschreibung aus Schnittstelle kopiert: IImplementingElement
      Returns the interfaces implemented by this instance
      Angegeben von:
      getImplementedInterfacesIDReferences in Schnittstelle IImplementingElement
      Gibt zurück:
      the implemented interfaces
    • setImplementedInterfaces

      public void setImplementedInterfaces(Set<IState> implementedInterface, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IImplementingElementT
      Sets the set of implemented interfaces for the instance
      Angegeben von:
      setImplementedInterfaces in Schnittstelle IImplementingElementT<IState>
      Parameter:
      implementedInterface - The set of implemented interfaces
      removeCascadeDepth - >Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setImplementedInterfaces

      public void setImplementedInterfaces(Set<IState> implementedInterface)
      Beschreibung aus Schnittstelle kopiert: IImplementingElementT
      Sets the set of implemented interfaces for the instance
      Angegeben von:
      setImplementedInterfaces in Schnittstelle IImplementingElementT<IState>
      Parameter:
      implementedInterface - The set of implemented interfaces
    • addImplementedInterface

      public void addImplementedInterface(IState implementedInterface)
      Beschreibung aus Schnittstelle kopiert: IImplementingElementT
      adds an implemented interface
      Angegeben von:
      addImplementedInterface in Schnittstelle IImplementingElementT<IState>
      Parameter:
      implementedInterface - the new interface
    • removeImplementedInterfaces

      public void removeImplementedInterfaces(String id, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IImplementingElement
      Removes a specified interface from the set of implemented interfaces.
      Angegeben von:
      removeImplementedInterfaces in Schnittstelle IImplementingElement
      Parameter:
      id - the id of the interface that should be removed
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • removeImplementedInterfaces

      public void removeImplementedInterfaces(String id)
      Beschreibung aus Schnittstelle kopiert: IImplementingElement
      Removes a specified interface from the set of implemented interfaces.
      Angegeben von:
      removeImplementedInterfaces in Schnittstelle IImplementingElement
      Parameter:
      id - the id of the interface that should be removed
    • getImplementedInterfaces

      public Map<String,IState> getImplementedInterfaces()
      Beschreibung aus Schnittstelle kopiert: IImplementingElementT
      Returns the interfaces implemented by this instance
      Angegeben von:
      getImplementedInterfaces in Schnittstelle IImplementingElementT<IState>
      Gibt zurück:
      the implemented interfaces
    • setReferencedMacroBehavior

      public void setReferencedMacroBehavior(IMacroBehavior macroBehavior, int removeCascadeDepth)
      Beschreibung aus Schnittstelle kopiert: IMacroState
      Sets the macro behavior that is referenced by the macro state
      Angegeben von:
      setReferencedMacroBehavior in Schnittstelle IMacroState
      Parameter:
      macroBehavior - the macro behavior
      removeCascadeDepth - Parses the depth of a cascading delete for elements that are connected to the currently deleted one
    • setReferencedMacroBehavior

      public void setReferencedMacroBehavior(IMacroBehavior macroBehavior)
      Beschreibung aus Schnittstelle kopiert: IMacroState
      Sets the macro behavior that is referenced by the macro state
      Angegeben von:
      setReferencedMacroBehavior in Schnittstelle IMacroState
      Parameter:
      macroBehavior - the macro behavior
    • getReferencedMacroBehavior

      public IMacroBehavior getReferencedMacroBehavior()
      Beschreibung aus Schnittstelle kopiert: IMacroState
      Gets the macro behavior that is referenced by the macro state
      Angegeben von:
      getReferencedMacroBehavior in Schnittstelle IMacroState
      Gibt zurück:
      the macro behavior