se.liu.ida.critiquer.resources
Class AgentParameterFactory

java.lang.Object
  extended by se.liu.ida.critiquer.resources.AgentParameterFactory

public class AgentParameterFactory
extends java.lang.Object

This class contains static factory methods for constructing parameters that are part of agents, not activities


Constructor Summary
AgentParameterFactory()
           
 
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 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentParameterFactory

public AgentParameterFactory()
Method Detail

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


createRoadBlockTimeParameter

public static void createRoadBlockTimeParameter(Agent a,
                                                long initialTime)