|
||||||||||
| 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.scripting.action.ScriptableAction
public class ScriptableAction
ScriptableAction allows for custom actions. You set the script via setScript(String ) - it must contain a function fire(model, production, bindings) { }
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SCRIPT
Description of the Field |
| Constructor Summary | |
|---|---|
ScriptableAction()
Constructor for the ScriptableAction object |
|
ScriptableAction(java.lang.String script)
Constructor for the ScriptableAction 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. |
void |
dispose()
Description of the Method |
double |
fire(IInstantiation instantiation,
double firingTime)
Description of the Method |
java.lang.String |
getScript()
Gets the script attribute of the ScriptableAction object |
void |
setScriptString(java.lang.String str)
Sets the script attribute of the ScriptableAction object |
| Methods inherited from class org.jactr.core.production.action.DefaultAction |
|---|
resolve |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SCRIPT
| Constructor Detail |
|---|
public ScriptableAction()
public ScriptableAction(java.lang.String script)
script - Description of the Parameter| Method Detail |
|---|
public void dispose()
dispose in interface IActiondispose in class DefaultActionpublic IAction bind(java.util.Map<java.lang.String,java.lang.Object> variableBindings)
IAction
public java.lang.String getScript()
public void setScriptString(java.lang.String str)
str - The new script value
public double fire(IInstantiation instantiation,
double firingTime)
fire in interface IActionfire in class DefaultActioninstantiation - Description of the Parameterbindings - Description of the Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||