|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectaa.core.Actor
aa.core.FacilitatorActor
This class represents a facilitator actor of a cyberorg
| Field Summary | |
protected CyberOrg |
m_cybHost
|
| Fields inherited from class aa.core.Actor |
m_athread |
| Constructor Summary | |
FacilitatorActor(CyberOrg p_cybHost)
Creates a new instance of FacilitatorActor |
|
| Method Summary | |
CyberOrg |
doAssimilate()
CyberOrg assimilate |
CyberOrg |
doIsolate(java.lang.Long p_longECash,
ActorName[] p_anaActors,
Contract p_conContract)
CyberOrg isolate |
void |
doMigrate(ActorName p_anDestFacilitator,
Contract p_conNewContract)
CyberOrg migrate |
CyberOrg |
getHost()
Returns the host cyberorg |
Contract |
negotiate(ActorName p_anSender,
Contract p_conContract)
Negotiation |
ActorName |
receiveCyberOrg(Contract p_conContract,
java.lang.Long p_LECash,
java.util.LinkedList p_llActors)
This method is called in remote migration , when a cyberorg is migrating to this facilitator's host |
CyberOrg |
remoteControlAssimilate()
Remote control assimilation (being used in a specific example) |
CyberOrg |
remoteControlIsolate(java.lang.Long p_longECash,
ActorName[] p_anaActors,
Contract p_conContract)
Remote control isolation (being used in a specific example) |
void |
setHost()
Set the host cyberorg it is called after migration, because the new host is created in the new Platform |
void |
tryMigrate(ActorName p_anReceiver,
Contract p_conContract)
Try to migrate using proposed contract |
| Methods inherited from class aa.core.Actor |
become, become, become, become, become, become, become, become, become, become, become, becomeActor, call, call, call, call, call, call, call, call, call, call, call, callMessage, create, create, create, create, create, create, create, create, create, create, create, createActor, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemoteActor, destroy, echo, getActorName, getDefaultDirectoryManager, getDefaultDirectoryManager, getLastErrorMessage, migrate, print, printLastErrorMessage, println, send, send, send, send, send, send, send, send, send, send, send, sendMessage, setErrorMessage, uninit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient CyberOrg m_cybHost
| Constructor Detail |
public FacilitatorActor(CyberOrg p_cybHost)
| Method Detail |
public void setHost()
public CyberOrg getHost()
public CyberOrg doIsolate(java.lang.Long p_longECash,
ActorName[] p_anaActors,
Contract p_conContract)
p_longECash - eCash to be allocated to the childp_anaActors - Actors to be isolated to the child cyberorgp_conContract - New contract
public CyberOrg remoteControlIsolate(java.lang.Long p_longECash,
ActorName[] p_anaActors,
Contract p_conContract)
p_longECash - p_anaActors - p_conContract -
public CyberOrg doAssimilate()
public CyberOrg remoteControlAssimilate()
public void doMigrate(ActorName p_anDestFacilitator,
Contract p_conNewContract)
p_anDestFacilitator - The distination facilitatorp_conNewContract - New contranct
public ActorName receiveCyberOrg(Contract p_conContract,
java.lang.Long p_LECash,
java.util.LinkedList p_llActors)
p_conContract - The contract which is held by the coming cyberorgp_LECash - The number of eCashp_llActors - Actor list of the coming cyberorg
public Contract negotiate(ActorName p_anSender,
Contract p_conContract)
p_anSender - The name of the facilitator which initializes the negotiationp_conContract - The proposed contract
public void tryMigrate(ActorName p_anReceiver,
Contract p_conContract)
p_anReceiver - The potential destinationp_conContract - The proposed contract
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||