|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunsw.cse.mica.agent.transport.AbstractAgentProtocol.Reply
public class AbstractAgentProtocol.Reply
An encapsulation of a reply from the blackboards in response to an action.
| Field Summary | |
|---|---|
java.util.List |
mobs
|
java.lang.String |
msg
|
TypeManager |
tm
|
java.lang.String |
type
|
static java.lang.String |
TYPE_CONNECT
|
static java.lang.String |
TYPE_MOBSEARCH
|
static java.lang.String |
TYPE_READMOB
|
static java.lang.String |
TYPE_STATUS
|
static java.lang.String |
TYPE_TYPEMANAGER
|
static java.lang.String |
TYPE_WRITEMOB
|
| Constructor Summary | |
|---|---|
AbstractAgentProtocol.Reply(java.lang.String type,
java.util.List mobs)
Create a reply containing a reply type and a message |
|
AbstractAgentProtocol.Reply(java.lang.String type,
java.lang.String msg)
Create a reply containing a reply type and a message |
|
AbstractAgentProtocol.Reply(java.lang.String type,
java.lang.String msg,
Mob mob)
Create a reply containing a reply type and a message |
|
AbstractAgentProtocol.Reply(java.lang.String type,
TypeManager tm)
Create a reply containing a reply type and a type manager |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_STATUS
public static final java.lang.String TYPE_CONNECT
public static final java.lang.String TYPE_WRITEMOB
public static final java.lang.String TYPE_READMOB
public static final java.lang.String TYPE_MOBSEARCH
public static final java.lang.String TYPE_TYPEMANAGER
public java.lang.String type
public java.lang.String msg
public java.util.List mobs
public TypeManager tm
| Constructor Detail |
|---|
public AbstractAgentProtocol.Reply(java.lang.String type,
java.lang.String msg)
type - must be TYPE_STATUS, TYPE_CONNECT or TYPE_WRITEMOBmsg - the message returned from the blackboard
public AbstractAgentProtocol.Reply(java.lang.String type,
java.lang.String msg,
Mob mob)
type - must be TYPE_READMOBmsg - the message returned from the blackboardmob - the mob returned from the blackboard
public AbstractAgentProtocol.Reply(java.lang.String type,
java.util.List mobs)
type - must be TYPE_MOBSEARCHmobs - the list of mobs returned from the blackboard
public AbstractAgentProtocol.Reply(java.lang.String type,
TypeManager tm)
type - must be TYPE_TYPEMANAGERtm - the type manager obtained from the blackboard
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||