|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.almende.eve.agent.Agent
com.almende.eve.agent.example.CalcAgent
public class CalcAgent
Constructor Summary | |
---|---|
CalcAgent()
|
Method Summary | |
---|---|
String |
eval(String expr)
Evaluate given expression For example expr="2.5 + 3 / sqrt(16)" will return "3.25" |
String |
getDescription()
Retrieve a description of the agents functionality |
String |
getVersion()
Retrieve the agents version number |
Methods inherited from class com.almende.eve.agent.Agent |
---|
clear, create, createAgentProxy, delete, destroy, finalize, getAgentFactory, getContext, getId, getMethods, getScheduler, getState, getType, getUrls, init, onSubscribe, onTrigger, onUnsubscribe, send, send, send, send, sendAsync, sendAsync, setAgentFactory, setState, subscribe, toString, trigger, unsubscribe, unsubscribe |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CalcAgent()
Method Detail |
---|
public String eval(String expr) throws Exception
expr
-
Exception
public String getVersion()
AgentInterface
getVersion
in interface AgentInterface
getVersion
in class Agent
public String getDescription()
AgentInterface
getDescription
in interface AgentInterface
getDescription
in class Agent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |