|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.xabsl.jxabsl.parameters.ParameterAssignment
public class ParameterAssignment
Represents the assignment of parameters of a subsequent basic behaviors or an option or an input symbol, i.e. stores expressions and writes them to the appropriate parameters before execution of a behavior or input symbol. Parameters that have no assigned expression are set to a standard value.
Field Summary | |
---|---|
protected DebugMessages |
debug
|
Constructor Summary | |
---|---|
ParameterAssignment(DebugMessages debug,
Parameters refParameters)
|
Method Summary | |
---|---|
void |
create(InputSource input,
OptionParameters optionParameters,
Symbols symbols,
TimeFunction timeOfOptionExecution,
TimeFunction timeOfStateExecution,
java.util.List<Action> actions)
Creates the parameter assignment. |
java.lang.String |
getBooleanDebugName(int pos)
Returns the name of a parameter for debugging |
boolean[] |
getBooleanDebugValues()
|
java.util.Set<java.lang.String> |
getBooleanNames()
May only be called before refParameters are set. |
java.lang.String |
getDecimalDebugName(int pos)
Returns the name of a parameter for debugging |
double[] |
getDecimalDebugValues()
for debugging ** |
java.util.Set<java.lang.String> |
getDecimalNames()
May only be called before refParameters are set. |
java.lang.String |
getEnumeratedDebugName(int pos)
Returns the name of a parameter for debugging |
java.lang.Object[] |
getEnumeratedDebugValues()
|
java.util.Set<java.lang.String> |
getEnumeratedNames()
May only be called before refParameters are set. |
Parameters |
getRefParameters()
Return the referenced parameters. |
void |
set()
sets parameter variables to current expression values |
void |
setRefParameters(Parameters refParameters)
Set the referenced parameters, to which values will be written |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DebugMessages debug
Constructor Detail |
---|
public ParameterAssignment(DebugMessages debug, Parameters refParameters)
debug
- refParameters
- The referenced Parameters. May be null, but in that case
setRefParameters
must be called later on.Method Detail |
---|
public void create(InputSource input, OptionParameters optionParameters, Symbols symbols, TimeFunction timeOfOptionExecution, TimeFunction timeOfStateExecution, java.util.List<Action> actions) throws IntermediateCodeMalformedException
input
- An input source for the intermediate code. It must be opened
and read until a position where a parameter assignment starts.optionParameters
- The parameters of the optionsymbols
- All available symbolstimeOfOptionExecution
- The time how long the option is already activetimeOfStateExecution
- The time how long the current state is already activeactions
- The subsequent behaviors i.e options and basic behaviors of
the state.
IntermediateCodeMalformedException
public void set()
public java.lang.String toString()
toString
in class java.lang.Object
public void setRefParameters(Parameters refParameters)
refParameters
- the referenced parameterspublic java.util.Set<java.lang.String> getDecimalNames()
public java.util.Set<java.lang.String> getBooleanNames()
public java.util.Set<java.lang.String> getEnumeratedNames()
public Parameters getRefParameters()
public double[] getDecimalDebugValues()
public boolean[] getBooleanDebugValues()
public java.lang.Object[] getEnumeratedDebugValues()
public java.lang.String getBooleanDebugName(int pos)
pos
- The position in the debuggin values
public java.lang.String getDecimalDebugName(int pos)
pos
- The position in the debuggin values
public java.lang.String getEnumeratedDebugName(int pos)
pos
- The position in the debuggin values
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |