public abstract class StaticLoadBalancingBase extends BaseLoadBalancing
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<AgentClassElement4SimStart> |
currAgentList
The current agent list.
|
protected int |
currNumberOfAgents
The current number of agents.
|
protected int |
currNumberOfContainer
The current number of container.
|
protected boolean |
isRemoteOnly
The remote only boolean, do not use local machine for agents.
|
protected java.lang.String |
localContainerName
The local container name.
|
currContainerBenchmarkResults, currContainerLoactions, currDisSetup, currProject, currSimSetup, currThresholdExceededOverAll, currThresholdLevels, loadHelper, simHelper
Constructor and Description |
---|
StaticLoadBalancingBase(LoadExecutionAgent agent)
Instantiates a new static load balancing base.
|
Modifier and Type | Method and Description |
---|---|
int |
onEnd()
This Method will be called right after the end of the action() method and
will remove shut down the current agent.
|
void |
onStart()
This Method will be called right before the begin of the action() method and
will start the visualisation agent in the prepared tag of Agent.GUI.
|
protected void |
startAgentsFromCurrAgentList()
This method will start all agents defined in the agent list
of 'Agent-Start' from the 'Simulation-Setup'.
|
protected void |
startAgentsFromCurrAgentList(boolean printAgentStart2Console)
This method will start all agents defined in the agent list
of 'Agent-Start' from the 'Simulation-Setup'.
|
protected void |
startVisualizationAgent()
This method will start the agent that will show the visualisation of the current environment model.
|
action, getStartArguments, openMonitorAgents, setAgentMigration, startAgent, startAgent, startAgent, startAgent, startAgentsOnContainers, startNumberOfRemoteContainer, startRemoteContainer, startRemoteContainer
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doBalancing
protected java.util.ArrayList<AgentClassElement4SimStart> currAgentList
protected int currNumberOfAgents
protected int currNumberOfContainer
protected boolean isRemoteOnly
protected java.lang.String localContainerName
public StaticLoadBalancingBase(LoadExecutionAgent agent)
public void onStart()
onStart
in class jade.core.behaviours.Behaviour
public int onEnd()
onEnd
in class jade.core.behaviours.Behaviour
protected void startAgentsFromCurrAgentList()
protected void startAgentsFromCurrAgentList(boolean printAgentStart2Console)
printAgentStart2Console
- if true, every agent start will be printed in the consoleprotected void startVisualizationAgent()
Application.isOperatingHeadless()