Class SimulatedStackframe<T>
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a value to this stackframevoid
addVariables
(SimulatedStackframe<T> callResult) Add all variables and their values in the given frame to this frameClone this stackframeRetrieve a value from this stackframe.boolean
Checks whether a value is present on the stack or resolvable via one of its parents.toString()
-
Constructor Details
-
SimulatedStackframe
-
SimulatedStackframe
public SimulatedStackframe()
-
-
Method Details
-
addValue
Add a value to this stackframe- Parameters:
id
- ID of the valuevalue
- The actual value
-
hasValue
Checks whether a value is present on the stack or resolvable via one of its parents. -
getValue
Retrieve a value from this stackframe. If the value is not part of this stackframe the parent stackframe is queried automatically- Parameters:
id
- ID of the variable value to retrieve- Returns:
- The value of the variable with id ID.
- Throws:
ValueNotInFrameException
- Is throw if this frame and all parent frames do not contain the id ID
-
copyFrame
Clone this stackframe- Returns:
- A clone of the stackframe. The parent frames are copies as well
-
getContents
- Returns:
- All IDs and their value in the current frame. For debugging and error reporting cases
-
addVariables
Add all variables and their values in the given frame to this frame- Parameters:
callResult
- The frame whose contents will be copied into this frame
-
toString
-