|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--com.ibm.able.AbleObject | +--com.ibm.able.agents.AbleDefaultAgent | +--com.ibm.able.platform.agents.FipaAgentDefaultAgent | +--com.ibm.able.platform.agents.FipaDfAgentAppl
This class provides an implementation of a FIPA Directory Facilitator (DF) agent.
This implementation of a DF agent will
This DF does not register with itself (what's the point, really?)
Fields inherited from class com.ibm.able.platform.agents.FipaAgentDefaultAgent |
myAmsAd,
myDfAd,
myDfServices |
Fields inherited from class com.ibm.able.agents.AbleDefaultAgent |
activeDataSource,
agentAddr,
agentHost,
agentName,
beans,
effectors,
eventConnections,
numEpochs,
processList,
processListOK,
sensors |
Fields inherited from class com.ibm.able.AbleObject |
changed,
chgSupport,
comment,
dataFlowEnabled,
destBufferConnections,
eventQueue,
fileName,
inputBuffer,
listeners,
logger,
name,
outputBuffer,
parent,
propertyConnectionMgr,
sourceBufferConnections,
state,
stateChgSupport |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
FipaDfAgentAppl()
Create a new AblePlatform FIPA DF agent. |
Method Summary | |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
FipaDfAgentDescription |
deregister(FipaDfAgentDescription theDescription)
Deregister an agent from this DF. |
java.util.Hashtable |
getRegisteredAgents()
Get all the registered agents from this DF. |
void |
init()
Initialize and configure the agent. |
static void |
main(java.lang.String[] args)
Create a FIPA DF agent and register it with RMI so that it is available over the network. |
void |
modify(FipaDfAgentDescription theDescription)
Modify a registered agent. |
void |
quitAgent()
Terminate this agent. |
FipaDfAgentDescription |
register(FipaDfAgentDescription theDescription)
Register an agent with this DF. |
java.util.Vector |
search(FipaDfAgentDescription theDescription)
Search the agent registry for an agent with specific attributes. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
Methods inherited from class com.ibm.able.platform.agents.FipaAgentDefaultAgent |
deregisterWithAms,
deregisterWithDf,
destroyAgent,
executeAgent,
invokeAgent,
moveAgent,
msgAcceptProposal,
msgAgree,
msgCancel,
msgCfp,
msgConfirm,
msgDisconfirm,
msgFailure,
msgInform,
msgInformIf,
msgInformRef,
msgNotUnderstood,
msgPropose,
msgQueryIf,
msgQueryRef,
msgRefuse,
msgRejectProposal,
msgRequest,
msgRequestWhen,
msgRequestWhenever,
msgSubscribe,
registerWithAms,
registerWithDf,
resumeAgent,
suspendAgent,
waitAgent,
wakeUpAgent |
Methods inherited from class com.ibm.able.agents.AbleDefaultAgent |
addBean,
addEffector,
addEventConnection,
addSensor,
buildProcessList,
clsNm,
containsBean,
containsBean,
debugTrace,
getAgentAddr,
getAgentHost,
getAgentName,
getBean,
getBeans,
getDataSource,
getEffectors,
getNumEpochs,
getProcessList,
getSensors,
handleAbleEvent,
init,
invokeEffector,
invokeSensor,
isActiveDataSource,
process,
propertyChange,
quitAll,
quitEnabledEventProcessing,
removeAllBeans,
removeBean,
removeEffector,
removeEventConnection,
removeSensor,
reset,
resumeAll,
rmiRebind,
rmiUnbind,
setActiveDataSource,
setEffectors,
setProcessList,
setSensors,
suspendAll |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public FipaDfAgentAppl() throws java.rmi.RemoteException
The name and comment are set to pre-defined values, but the agent does not otherwise initialise itself or begin running until init() is called.
Method Detail |
public FipaDfAgentDescription register(FipaDfAgentDescription theDescription) throws java.rmi.RemoteException
theDescription
- A FIPA DF agent description identifying the agent to
be registered.
public FipaDfAgentDescription deregister(FipaDfAgentDescription theDescription) throws java.rmi.RemoteException
theDescription
- A FIPA DF agent description identifying the agent to
be deregistered.
The agent must, of course, already be registered with this DF.
public java.util.Vector search(FipaDfAgentDescription theDescription) throws java.rmi.RemoteException
NOTE that this method currently searches only by service-type!
theDescription
- A FIPA DF agent description containing search criteria.
public void modify(FipaDfAgentDescription theDescription) throws java.rmi.RemoteException
NOTE that this method currently does nothing!
theDescription
- A FIPA DF agent description identifying the agent to
be modified, and how it is to be modified.
The agent must, of course, be registered with this DF.
public java.util.Hashtable getRegisteredAgents() throws java.rmi.RemoteException
public void quitAgent() throws java.rmi.RemoteException
public void init() throws java.rmi.RemoteException
In this implementation the bean's state changes from AbleState.Uninitiated to AbleState.Initiated; timer event processing is disabled; both Able event posting and processing are enabled; and the asynchronous thread is started.
Furthermore, the AMS Agent Description is filled in and the DF registers with the AMS.
public static void main(java.lang.String[] args)
public java.lang.String toString()
public static java.lang.String Copyright()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |