|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVariableCtx
The IVariableCtx interface is the interface for variable contexts that maintain information regarding the binding of a variable defined for a frame and bound in a frame context. The binding of a variable can be one or more values depending on the type of variable and depending on the binding of the variable in a precondition or activity.
Method Summary | |
---|---|
void |
addBinding(java.lang.Boolean value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Byte value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Character value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Double value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Float value)
Adds the specified value to bind the variable. |
void |
addBinding(IConceptCtx value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Integer value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Long value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Object value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.Short value)
Adds the specified value to bind the variable. |
void |
addBinding(java.lang.String value)
Adds the specified value to bind the variable. |
void |
addBinding(Unknown value)
Adds the specified value to bind the variable. |
void |
addBinding(Value value)
Adds the specified value to bind the variable. |
void |
addJavaBinding(java.lang.Object value)
Adds the specified value to bind the variable. |
void |
clearBinding()
Clears the bindings, removing all binding values. |
java.util.Enumeration |
getBinding()
Returns a list of all the value bindings for this variable. |
IBrahmsObjectCtx |
getBindingElement()
Returns the element binding the variable (IPreconditionCtx, IDetectableCtx, ITransferDefinitionCtx, IActivityCtx) |
IFrameCtx |
getBindingFrame()
Returns the frame context in which the variable is bound. |
boolean |
hasBinding(java.lang.Object value)
Tests whether this context has the specified value as a binding. |
boolean |
isBound()
Returns whether the variable is bound to a value (true) or not (false). |
void |
removeBinding(java.lang.Object value)
Removes the specified value as a binding for the variable. |
void |
setBindingElement(IBrahmsObjectCtx elm)
Sets the element binding the variable (IPreconditionCtx, IDetectableCtx, ITransferDefinitionCtx, IActivityCtx) |
void |
setBindingFrame(IFrameCtx frame)
Sets the frame context in which the variable is bound. |
void |
setBound(boolean bound)
Specifies whether the variable is bound to a value (true) or not (false). |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Method Detail |
---|
void setBindingFrame(IFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the IFrameCtx in which the variable is bound.
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null frame is specifiedIFrameCtx getBindingFrame() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no binding frame is specifiedvoid setBindingElement(IBrahmsObjectCtx elm) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
elm
- the IBrahmsObjectCtx binding the variable.
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null element is specifiedIBrahmsObjectCtx getBindingElement() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no binding element is specifiedvoid setBound(boolean bound)
bound
- true if a value is assigned, false otherwiseboolean isBound()
void addBinding(java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the object to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Integer value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Integer to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Character value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Character to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Byte value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Byte to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Short value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Short to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Long value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Long to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Float value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Float to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Double value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Double to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.Boolean value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Boolean to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(java.lang.String value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the String to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(IConceptCtx value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the IConceptCtx to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addJavaBinding(java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Java Object to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(Unknown value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Unknown value to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullvoid addBinding(Value value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Value to be added as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is nullboolean hasBinding(java.lang.Object value)
value
- the value to be testedvoid removeBinding(java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the value to be removed as a binding
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if value is null, no values
are present, or the value is not foundvoid clearBinding()
java.util.Enumeration getBinding() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no bindings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |