public class LoadInformation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LoadInformation.Container2Wait4
Describes the container on which it can be waited, in order to join the
currently running platform.
|
class |
LoadInformation.NodeDescription
This class describes the container(computer), which are
connected to the Main-Container.
|
Constructor and Description |
---|
LoadInformation() |
Modifier and Type | Method and Description |
---|---|
void |
doCountingsInLoadAgentMap()
This method starts the counting for the agents at the platform
and the agents that are located at one specific container
|
double |
getAvgCycleTime()
Method to get the current cycle-frequency in average.
|
java.util.Hashtable<java.lang.String,LoadInformation.NodeDescription> |
getContainerDescriptionHash()
Returns the container description hash.
|
java.util.Hashtable<java.lang.String,PlatformLoad> |
getContainerLoadHash()
Returns the container load hash that holds load information by container name.
|
java.util.Hashtable<java.lang.String,jade.core.Location> |
getContainerLocationHash()
Returns the container location hash that describes the relation between container name and JADE Location.
|
java.util.Vector<java.lang.String> |
getContainerNames()
Returns the names of all known container.
|
LoadAgentMap |
getLoadAgentMap()
Returns the
LoadAgentMap that allows to answer: where can I find a specified agent). |
LoadInformation.Container2Wait4 |
getNewContainer2Wait4Status(java.lang.String containerName)
Returns the status of the container on which the system is waiting for
in order to join the current platform.
|
java.util.Vector<jade.core.AID> |
getSensorAgents()
Returns all known sensor agents (agents that are connected to an environment model
by the actuator-sensor relationship of the SimulationService).
|
void |
putAIDsToLoadAgentMap(java.lang.String containerName,
jade.core.AID[] aid)
Method to put the Agent-AIDs which are coming from the
currently running containers.
|
void |
putContainerDescription(ClientRemoteContainerReply crcReply)
Method to put the answer of the Server.Master directly
in the local public containerDescription - Variable
|
void |
resetLoadAgentMap()
Resets the Object, which holds the Informations about
the agent in relation to it's locations etc.
|
void |
setNewContainer2Wait4(java.lang.String container2Wait4)
Sets the container name on which the running system is waiting for, because
a new remote container was requested.
|
void |
setNewContainerCanceled(java.lang.String containerName)
This method sets that the new RemoteContainerRequest was NOT successfully.
|
void |
setNewContainerStarted(java.lang.String containerName)
This method sets that the new RemoteContainerRequest was successfully.
|
void |
setSimulationCycleStartTimeStamp()
Method to calculate the cycle-frequency of the simulation.
|
public java.util.Vector<java.lang.String> getContainerNames()
public java.util.Hashtable<java.lang.String,LoadInformation.NodeDescription> getContainerDescriptionHash()
public java.util.Hashtable<java.lang.String,PlatformLoad> getContainerLoadHash()
public java.util.Hashtable<java.lang.String,jade.core.Location> getContainerLocationHash()
public LoadAgentMap getLoadAgentMap()
LoadAgentMap
that allows to answer: where can I find a specified agent).public void resetLoadAgentMap()
agentLocations
public void putAIDsToLoadAgentMap(java.lang.String containerName, jade.core.AID[] aid)
containerName
- the container nameaid
- the AID array of the agentsagentLocations
public void doCountingsInLoadAgentMap()
public java.util.Vector<jade.core.AID> getSensorAgents()
public void setSimulationCycleStartTimeStamp()
public double getAvgCycleTime()
public void putContainerDescription(ClientRemoteContainerReply crcReply)
crcReply
- the ClientRemoteContainerReply, which describes a single container and its machine.public void setNewContainer2Wait4(java.lang.String container2Wait4)
container2Wait4
- the new new container2 wait4LoadServiceHelper.startNewRemoteContainer()
,
LoadServiceHelper.startNewRemoteContainer(agentgui.simulationService.ontology.RemoteContainerConfig)
public LoadInformation.Container2Wait4 getNewContainer2Wait4Status(java.lang.String containerName)
containerName
- the container nameLoadServiceHelper.startNewRemoteContainerStaus(String)
public void setNewContainerStarted(java.lang.String containerName)
containerName
- the new container, which startedpublic void setNewContainerCanceled(java.lang.String containerName)
containerName
- the container, which was NOT started