|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.liu.ida.critiquer.scenarios.standard.StandardAgentParameterFactory
public class StandardAgentParameterFactory
This class contains static factory methods for constructing parameters that are part of agents, not activities
Constructor Summary | |
---|---|
StandardAgentParameterFactory()
|
Method Summary | |
---|---|
static void |
createFirstAidParameters(Agent a,
long initialTime,
int initialCapacity)
Creates parameters for taking care of patients, indicating both how many this agent can cater at a time as well as how long it takes to administrate first aid to such a group |
static void |
createFuelParameters(Agent agent,
int fuelTankCapacity,
int fuelConsumption)
|
static void |
createRoadBlockTimeParameter(Agent a,
long initialTime)
|
static void |
createSpeedParameter(Agent a,
long initialSpeed)
The speed parameter dictates how long time it will take to dispatch units as well as to go between locations later. |
static void |
createTransportParameter(Agent a,
int initialCapacity)
Creates a parameter that describes the transportation capacity of the agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardAgentParameterFactory()
Method Detail |
---|
public static void createFuelParameters(Agent agent, int fuelTankCapacity, int fuelConsumption)
public static void createSpeedParameter(Agent a, long initialSpeed)
public static void createFirstAidParameters(Agent a, long initialTime, int initialCapacity)
Creates parameters for taking care of patients, indicating both how many this agent can cater at a time as well as how long it takes to administrate first aid to such a group
public static void createTransportParameter(Agent a, int initialCapacity)
Creates a parameter that describes the transportation capacity of the agent.
This requires a speed parameter to be present and will create one if it doesn't exist.
Also, we hook up a time calculator for RecoverActivities here.
public static void createRoadBlockTimeParameter(Agent a, long initialTime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |