public class CasesManager
extends java.lang.Object
| Constructor and Description |
|---|
CasesManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCase(Cases c,
boolean hasChosen,
ST8 activity)
Add case to the counters, defining if the agent made his choice, or not yet.
|
static void |
addCase(Surveillance surveillance,
boolean forbidden,
boolean hasChosen,
ST8 activity)
Add case to the counters, defining if the agent made his choice, or not yet.
|
static Cases |
getCase(Surveillance surveillance,
boolean forbidden)
Returns the case considering a surveillance, and the fact that agent's vehicle is forbidden or not.
|
static int[] |
getCounter(ST8 activity,
Cases c)
Returns the counter for a case and an activity.
|
static void |
init()
Initialise the counters.
|
public static void init()
public static int[] getCounter(ST8 activity, Cases c)
activity - agent activity.c - considered case.public static void addCase(Cases c, boolean hasChosen, ST8 activity)
c - considered case.hasChosen - says if the agent has made his choice.activity - activity of the agent.public static void addCase(Surveillance surveillance, boolean forbidden, boolean hasChosen, ST8 activity)
surveillance - allows to compute the case.forbidden - allows to compute the case.hasChosen - says if the agent has made his choice.activity - activity of the agent.public static Cases getCase(Surveillance surveillance, boolean forbidden)
surveillance - the surveillance.forbidden - whether or not the vehicle is forbiddden.