Class StateStackFrame<A extends org.palladiosimulator.pcm.core.entity.Entity>

  • Type Parameters:
    A - the least common parent type of all actions that are to be traversed
    All Implemented Interfaces:
    IEntityState<A>

    public class StateStackFrame<A extends org.palladiosimulator.pcm.core.entity.Entity>
    extends Object
    implements IEntityState<A>
    A stack frame which holds information of the traversal progress.
    See Also:
    EntityState
    • Constructor Detail

      • StateStackFrame

        public StateStackFrame()
    • Method Detail

      • getCurrentPosition

        public A getCurrentPosition()
        Description copied from interface: IEntityState
        Returns the current position of the traversal.
        Specified by:
        getCurrentPosition in interface IEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
        Returns:
        the action that is being traversed currently
      • setCurrentPosition

        public void setCurrentPosition​(A position)
        Description copied from interface: IEntityState
        Sets the current position of the traversal.
        Specified by:
        setCurrentPosition in interface IEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
        Parameters:
        position - the action that is being traversed currently
      • setOnFinishCallback

        public void setOnFinishCallback​(Procedure onFinishCallback)
        Specified by:
        setOnFinishCallback in interface IEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
      • addProperty

        public void addProperty​(String name,
                                Object property)
        Specified by:
        addProperty in interface IEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
      • getProperty

        public <T> T getProperty​(String name,
                                 Class<T> type)
        Specified by:
        getProperty in interface IEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
        Parameters:
        name - the properties name
        Returns:
        the property, or null if there is no property for the given name