|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISimpAgent<TMsg extends IMsg,TVars extends ILogicVarBundle>
IAgent was too cumbersome -- this requires functions which do equivalent things but with simpler signatures.
Method Summary | |
---|---|
TMsg |
getMsg(TVars varsPrev,
int nIdDst)
Gets one individual IMsg to send to one specific agent. |
TVars |
stateNext(TVars varsPrev,
java.util.Collection<TMsg> bagMsg)
Given a collection of messages, calculates the next state of the logic variables for this agent. |
Method Detail |
---|
TVars stateNext(TVars varsPrev, java.util.Collection<TMsg> bagMsg)
bagMsg
- collection of messages to process (usually these should include
the id of the sending agent!!!)
TMsg getMsg(TVars varsPrev, int nIdDst)
varsPrev
- current state of this agentnIdDst
- UID of agent to send message to
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |