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 void
addProperty(String name, Object property)
A
getCurrentPosition()
Returns the current position of the traversal.Procedure
getOnFinishCallback()
<T> T
getProperty(String name, Class<T> type)
void
setCurrentPosition(A position)
Sets the current position of the traversal.void
setOnFinishCallback(Procedure onFinishCallback)
-
-
-
Method Detail
-
getCurrentPosition
public A getCurrentPosition()
Description copied from interface:IEntityState
Returns the current position of the traversal.- Specified by:
getCurrentPosition
in 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:IEntityState
Sets the current position of the traversal.- Specified by:
setCurrentPosition
in 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:
setOnFinishCallback
in interfaceIEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
-
getOnFinishCallback
public Procedure getOnFinishCallback()
- Specified by:
getOnFinishCallback
in interfaceIEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
-
addProperty
public void addProperty(String name, Object property)
- Specified by:
addProperty
in interfaceIEntityState<A extends org.palladiosimulator.pcm.core.entity.Entity>
-
getProperty
public <T> T getProperty(String name, Class<T> type)
- Specified by:
getProperty
in 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
-
-