Class StateStackFrame<A extends org.palladiosimulator.pcm.core.entity.Entity>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.interpreter.state.StateStackFrame<A>
-
- 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 Summary
Constructors Constructor Description StateStackFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String name, Object property)AgetCurrentPosition()Returns the current position of the traversal.ProceduregetOnFinishCallback()<T> TgetProperty(String name, Class<T> type)voidsetCurrentPosition(A position)Sets the current position of the traversal.voidsetOnFinishCallback(Procedure onFinishCallback)
-
-
-
Method Detail
-
getCurrentPosition
public A getCurrentPosition()
Description copied from interface:IEntityStateReturns the current position of the traversal.- Specified by:
getCurrentPositionin interfaceIEntityState<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:IEntityStateSets the current position of the traversal.- Specified by:
setCurrentPositionin interfaceIEntityState<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:
setOnFinishCallbackin interfaceIEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
-
getOnFinishCallback
public Procedure getOnFinishCallback()
- Specified by:
getOnFinishCallbackin interfaceIEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
-
addProperty
public void addProperty(String name, Object property)
- Specified by:
addPropertyin interfaceIEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
-
getProperty
public <T> T getProperty(String name, Class<T> type)
- Specified by:
getPropertyin interfaceIEntityState<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
-
-