se.liu.ida.critiquer.scenarios.standard
Class StandardAgentParameterFactory

java.lang.Object
  extended by se.liu.ida.critiquer.scenarios.standard.StandardAgentParameterFactory

public class StandardAgentParameterFactory
extends Object

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

StandardAgentParameterFactory

public StandardAgentParameterFactory()
Method Detail

createFuelParameters

public static void createFuelParameters(Agent agent,
                                        int fuelTankCapacity,
                                        int fuelConsumption)

createSpeedParameter

public 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.


createFirstAidParameters

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


createTransportParameter

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.


createRoadBlockTimeParameter

public static void createRoadBlockTimeParameter(Agent a,
                                                long initialTime)