|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.Agent
org.dyncle.SASystem
public abstract class SASystem
An Agent class for implementing self-adaptive systems.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jade.core.Agent |
|---|
jade.core.Agent.Interrupted |
| Field Summary | |
|---|---|
java.util.Map<java.lang.String,CLLoader> |
classLoaderRepository
HashMap for storing classloader |
java.lang.ref.WeakReference<java.lang.Object> |
clWR
A reference for checking whether the target has been unloaded |
| 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 | |
|---|---|
SASystem()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addCLInfo(java.lang.String name,
java.lang.String fqn,
ComponentBehaviour cb,
int pri,
java.util.List<java.lang.String> confList)
Adds the data of specified CL into the CLTable, which is a CL management table. |
boolean |
canActivate(java.lang.String name)
Checks whether the specified CL can transit to the activate state or not. |
java.util.List<ComponentBehaviour> |
findAnotherService(ComponentBehaviour compB)
Returns components that provide same service of specified component, except specified component itself. |
ComponentBehaviour |
findComponent(java.lang.String targetCompName)
Returns a component searched by name. |
java.util.List<ComponentBehaviour> |
findService(java.lang.String serviceType)
|
ComponentBehaviour |
getCL(java.lang.String clName)
Returns the AD type component of specified CL. |
CLTable |
getCLTable()
|
java.util.List<ComponentBehaviour> |
getLowerPriorityCLs(java.lang.String name)
Finds the control loops whose priority is lower than that of specified control loop. |
void |
printReceivedCommand(jade.lang.acl.ACLMessage receive)
Prints received command. |
void |
registerComponent(java.lang.String serviceType,
ComponentBehaviour compB)
Registers the specified component. |
void |
standBy(ComponentBehaviour comp)
Stands by the component. |
| Methods inherited from class jade.core.Agent |
|---|
addBehaviour, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AInterface, 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, waitUntilStarted, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Map<java.lang.String,CLLoader> classLoaderRepository
public java.lang.ref.WeakReference<java.lang.Object> clWR
| Constructor Detail |
|---|
public SASystem()
| Method Detail |
|---|
public void standBy(ComponentBehaviour comp)
comp -
public void registerComponent(java.lang.String serviceType,
ComponentBehaviour compB)
serviceType - : Service type (Service name)compB - : Component to be registeredpublic java.util.List<ComponentBehaviour> findService(java.lang.String serviceType)
public ComponentBehaviour findComponent(java.lang.String targetCompName)
targetCompName - : Comonent name.
public java.util.List<ComponentBehaviour> findAnotherService(ComponentBehaviour compB)
compB -
public void printReceivedCommand(jade.lang.acl.ACLMessage receive)
receive - public CLTable getCLTable()
public void addCLInfo(java.lang.String name,
java.lang.String fqn,
ComponentBehaviour cb,
int pri,
java.util.List<java.lang.String> confList)
name - fqn - cb - pri - confList - public ComponentBehaviour getCL(java.lang.String clName)
clName - : name of the specified Control loop.
public boolean canActivate(java.lang.String name)
name -
public java.util.List<ComponentBehaviour> getLowerPriorityCLs(java.lang.String name)
name - : control loop name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||