public class PolicyConsequent extends Object implements PolicyConsequentInterface
Modifier and Type | Field and Description |
---|---|
private Cons |
code
The lisp code as a String
|
Constructor and Description |
---|
PolicyConsequent(Cons lispCode) |
Modifier and Type | Method and Description |
---|---|
Object |
process(PolicyAgentInterface agent,
AgentUI ui,
Map<String,LispObject> bindings)
Executes the
#code as in the context of the agent and returns the object returned from
the lisp execution. |
String |
toString() |
private Cons code
public Object process(PolicyAgentInterface agent, AgentUI ui, Map<String,LispObject> bindings) throws Exception, ControlTransfer
PolicyConsequentInterface
#code
as in the context of the agent and returns the object returned from
the lisp execution. If the returned object is a JavaObject
, the referenced JavaObject
is returned, otherwise the LispObject
is returned.process
in interface PolicyConsequentInterface
bindings
- TODOControlTransfer
Exception
public String toString()
toString
in class Object
Object.toString()