aa.application.AdaptiveQuad
Class QuadFacilitator
java.lang.Object
aa.core.Actor
aa.core.FacilitatorActor
aa.application.AdaptiveQuad.QuadFacilitator
- All Implemented Interfaces:
- java.io.Serializable
- public class QuadFacilitator
- extends FacilitatorActor
- Author:
- xinghuizhao
- See Also:
- Serialized Form
Field Summary |
(package private) double |
aveError
|
(package private) long |
aveRate
|
(package private) long |
aveRes
|
(package private) java.lang.Object[] |
current
|
(package private) long |
myRate
|
(package private) long |
myRes
|
(package private) int |
num
|
(package private) int |
timesSearch
|
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 |
num
int num
aveRate
long aveRate
aveRes
long aveRes
aveError
double aveError
myRate
long myRate
myRes
long myRes
timesSearch
int timesSearch
current
java.lang.Object[] current
QuadFacilitator
public QuadFacilitator(CyberOrg p_cybHost)
- Creates a new instance of QuadFacilitator
resourceAlloc
public void resourceAlloc(ActorName p_anActor,
java.lang.Double p_doubleError)
estimate
public void estimate(double p_dError)
remoteCreateQuad
public void remoteCreateQuad(ActorName p_anClient,
java.lang.Double p_douTolerance,
java.lang.Double a,
java.lang.Double b,
java.lang.String p_strIP)
findRemoteFaci
public ActorName findRemoteFaci(java.lang.String p_strRemoteIP)
throws CommunicationException
- Throws:
CommunicationException
findBestDestination
public java.lang.Object[] findBestDestination()
printCurrentECash
public void printCurrentECash()