|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.Agent
gridiq.agents.GridIQAgent
public class GridIQAgent
The super class for JADE agents that can interact with GridIQ. This class provides the behaviour that enables agents to receive simulation results and obtain a reference to a bus in a GridIQ network.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jade.core.Agent |
|---|
jade.core.Agent.Interrupted |
| Field Summary | |
|---|---|
protected Bus |
bus
|
protected BusResult |
busResult
|
| Fields inherited from class jade.core.Agent |
|---|
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS |
| Constructor Summary | |
|---|---|
GridIQAgent()
|
|
| Method Summary | |
|---|---|
Bus |
getBus()
Gets the bus this agent controls. |
BusResult |
getBusResult()
Gets the most recent simulation result received by this agent |
int |
getTimestep()
Gets the current simulation time step according to this agent. |
void |
setBusResult(BusResult bus)
Sets the current simulation result for the agent. |
protected void |
setup()
The initial setup of the agent. |
| Methods inherited from class jade.core.Agent |
|---|
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, takeDown, waitUntilStarted, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BusResult busResult
protected Bus bus
| Constructor Detail |
|---|
public GridIQAgent()
| Method Detail |
|---|
protected void setup()
Bus this agent can control. This setup method
also enables object2Agent communication and adds a ReceiveBusData
behaviour to this agent.
setup in class jade.core.Agentpublic void setBusResult(BusResult bus)
bus - The bus simulation result to set for this agent.public int getTimestep()
public Bus getBus()
public BusResult getBusResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||