mas.agents0815
Class AgentRepairer
java.lang.Object
massim.javaagents.Agent
mas.agents0815.SubsumptionAgent
mas.agents0815.AgentRepairer
public class AgentRepairer
- extends SubsumptionAgent
The repairer surveys edges, moves randomly or joins a zone as standard behavior.
If an agent gets disabled, the first contacted repairer starts to calculate a
repair strategy (which repairer should take care, which agent moves/waits)
The repair order is processed in the two methods InitRepair and HandleRepair
InitRepair is only for repairers, HandleRepair is for all agents
InitRepair calculates a repair strategy (near zone, distance, decide responsibility).
Also decide which agent (damaged or repairer) should move.
Near Zone = repairer moves, otherwise damaged agent moves to repairer.
HandleRepair is used, if it's not the calculating repairer which has to move. It's
possible to use InitRepair for this if repairer moves, but not if an other agent moves.
So everything for a different agent is outsourced to HandleRepair.
TODO Dennis
Constructor Summary |
AgentRepairer(java.lang.String name,
java.lang.String team)
|
Methods inherited from class mas.agents0815.SubsumptionAgent |
getAnzangents, getHelpFunctions, getLastGoal, getMoney, getMyEnergy, getMyHealth, getMyID, getMyLastAction, getMyLastActionResult, getMyMaxEnergy, getMyMaxEnergyDisabled, getMyMaxHealth, getMyName, getMyPos, getMyStrength, getMyTeam, getRelation, getRussianCounter, getStep, getZoneStart, handlePercept, initDirectEdges, processAction, processMessages, removeBelief, removeGoal, removeLastGoal, selectAction, sendTopologyToUnseenAgents, setMoney, setMyEnergy, setMyHealth, setMyID, setMyLastAction, setMyLastActionResult, setMyMaxEnergy, setMyMaxEnergyDisabled, setMyMaxHealth, setMyName, setMyPos, setMyStrength, setMyTeam, setStep, step, updateUnseenAgents |
Methods inherited from class massim.javaagents.Agent |
addBelief, addGoal, broadcastBelief, clearBeliefs, clearGoals, containsBelief, containsGoal, createAgentFromClass, equals, getAllBeliefs, getAllPercepts, getBeliefBase, getEnvironmentInterface, getGoalBase, getMessages, getName, getTeam, hashCode, println, removeBeliefs, removeGoals, sendMessage, setEnvironmentInterface |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AgentRepairer
public AgentRepairer(java.lang.String name,
java.lang.String team)
getMyRole
public java.lang.String getMyRole()
- Specified by:
getMyRole
in class SubsumptionAgent
Copyright © 2012. All Rights Reserved.