movement
Class EveningActivityControlSystem

java.lang.Object
  extended by movement.EveningActivityControlSystem

public class EveningActivityControlSystem
extends java.lang.Object

This class controls the group mobility of the people meeting their friends in the evening


Method Summary
 void addEveningActivityNode(EveningActivityMovement eveningMovement)
          Register a evening activity node with the system
static EveningActivityControlSystem getEveningActivityControlSystem(int id)
          Returns a reference to a EveningActivityControlSystem with ID provided as parameter.
 EveningTrip getEveningInstructions(int eveningActivityNodeID)
          This method gets the instruction for a node, i.e.
 Coord getMeetingSpotForID(int id)
          Get the meeting spot for the node
static void reset()
           
 void setMeetingSpots(java.util.List<Coord> meetingSpots)
          Sets the meeting locations the nodes can choose among
 void setRandomNumberGenerator(java.util.Random rand)
          Sets the random number generator to be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

public static void reset()

addEveningActivityNode

public void addEveningActivityNode(EveningActivityMovement eveningMovement)
Register a evening activity node with the system

Parameters:
eveningMovement - activity movement

setMeetingSpots

public void setMeetingSpots(java.util.List<Coord> meetingSpots)
Sets the meeting locations the nodes can choose among

Parameters:
meetingSpots -

getEveningInstructions

public EveningTrip getEveningInstructions(int eveningActivityNodeID)
This method gets the instruction for a node, i.e. When/where and with whom to go.

Parameters:
eveningActivityNodeID - unique ID of the node
Returns:
Instructions object

getMeetingSpotForID

public Coord getMeetingSpotForID(int id)
Get the meeting spot for the node

Parameters:
id -
Returns:
Coordinates of the spot

setRandomNumberGenerator

public void setRandomNumberGenerator(java.util.Random rand)
Sets the random number generator to be used

Parameters:
rand -

getEveningActivityControlSystem

public static EveningActivityControlSystem getEveningActivityControlSystem(int id)
Returns a reference to a EveningActivityControlSystem with ID provided as parameter. If a system does not already exist with the requested ID, a new one is created.

Parameters:
id - unique ID of the EveningActivityControlSystem
Returns:
The EveningActivityControlSystem with the provided ID