|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.production.action.DefaultAction
org.jactr.core.production.action.BindAction
public class BindAction
BindAction is used merely for the assignment of variables that are not explicitly imbedded in any other action. The constructor accepts a variableName (?=variableName?) and any value that will be bound to. When the bind action is bound, the variable binding will be added to the Map making it accessible for subsequent Actions to utilize.
| Field Summary | |
|---|---|
java.lang.Object |
_object
Description of the Field |
java.lang.String |
_variableName
Description of the Field |
| Constructor Summary | |
|---|---|
BindAction(java.lang.String variableName,
java.lang.Object someValue)
Constructor for the BindAction object |
|
| Method Summary | |
|---|---|
IAction |
bind(java.util.Map<java.lang.String,java.lang.Object> variableBindings)
Bind is called during the creation of an instantiation of a produciton. |
double |
fire(IInstantiation instantiation,
double firingTime)
Description of the Method |
java.lang.Object |
getObject()
Gets the object attribute of the BindAction object |
java.lang.String |
getVariableName()
Gets the variableName attribute of the BindAction object |
void |
setObject(java.lang.Object ob)
Sets the object attribute of the BindAction object |
void |
setVariableName(java.lang.String name)
Sets the variableName attribute of the BindAction object |
| Methods inherited from class org.jactr.core.production.action.DefaultAction |
|---|
dispose, finalize, resolve |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String _variableName
public java.lang.Object _object
| Constructor Detail |
|---|
public BindAction(java.lang.String variableName,
java.lang.Object someValue)
variableName - Description of the ParametersomeValue - Description of the Parameter| Method Detail |
|---|
public IAction bind(java.util.Map<java.lang.String,java.lang.Object> variableBindings)
IAction
public java.lang.String getVariableName()
public void setVariableName(java.lang.String name)
name - The new variableName valuepublic java.lang.Object getObject()
public void setObject(java.lang.Object ob)
ob - The new object value
public double fire(IInstantiation instantiation,
double firingTime)
DefaultAction
fire in interface IActionfire in class DefaultActioninstantiation - Description of the ParameterfiringTime - when this production was fired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||