crowdmodel.gui
Class GUIparams

java.lang.Object
  extended by crowdmodel.gui.GUIparams

public class GUIparams
extends java.lang.Object

A singleton class of GUI parameters This allows for the creation of just one instantiation of the class That is accessible for all. The class is used to connect the parameters in the GUI with the simulation parameters and vise versa

Author:
Nanda Wijermans

Field Summary
(package private)  double d_custoId
           
(package private)  double d_custoSafe
           
(package private)  double d_custoSoc
           
(package private)  double d_custoSubs
           
(package private)  java.lang.String d_Iddist
           
(package private)  boolean d_idGoal
           
(package private)  double d_initId
           
(package private)  double d_initSafe
           
(package private)  double d_initSoc
           
private static GUIparams d_instance
           
(package private)  java.lang.String d_SafeDist
           
(package private)  boolean d_safeGoal
           
(package private)  java.lang.String d_SocDist
           
(package private)  boolean d_socGoal
           
(package private)  java.lang.String d_SubsDist
           
(package private)  boolean d_subsGoal
           
(package private)  boolean d_visDomGoal
           
 
Constructor Summary
private GUIparams()
          A private constructor as this is a singleton class can only be called by getInstance, which makes sure that this class is only instantiated once
 
Method Summary
 double getCustoId()
          Returns the preference level of the identity goal in case is a customised distribution The preference level is a attribute of an individual which can represent in the case of the identity goal that an individual has a high/low tendency or focus for identity => higher/lower probability that the identity goal is dominant
 double getCustoSafe()
          Returns the preference level of the safety goal in case is is a customised distribution The preference level is a attribute of an individual which can represent in the case of the safety goal that an individual has a high/low tendency or focus for safety => higher/lower probability that the safety goal is dominant.
 double getCustoSoc()
          Returns the preference level of the social goal in case of a customised distribution The preference level is a attribute of an individual which can represent in the case of the social goal that an individual has a high/low tendency or focus for social => higher/lower probability that the social goal is dominant.
 double getCustoSubs()
          Returns the preference level of the subsistence goal in case is is a customised distribution The preference level is a attribute of an individual which can represent in the case of the subsistence goal.
 java.lang.String getIdDist()
          Returns the type of distribution used to set the preferred level of identity satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 boolean getIdGoal()
          Returns a boolean value that indicates the particaption and thus influence role of the identity goal.
 double getInitId()
          Returns the initial value of the identity goal this represents the current satisfaction level
 double getInitSafe()
          Returns the initial value of the safety goal this represents the current satisfaction level
 double getInitSoc()
          Returns the initial value of the social goal this represents the current satisfaction level
static GUIparams getInstance()
          This function returns the instantiation of this class As this is a singleton, there is only one object created which is referred to by instance.
 java.lang.String getSafeDist()
          Returns the type of distribution used to set the preferred level of safety satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 boolean getSafeGoal()
          Returns a boolean value that indicates the participation and thus influence role of the social goal.
 java.lang.String getSocDist()
          Returns the type of distribution used to set the preferred level of social satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 boolean getSocGoal()
          Returns a boolean value that indicates the particaption and thus influence role of the social goal.
 java.lang.String getSubsDist()
          Returns the type of distribution used to set the preferred level of subsistence satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 boolean getSubsGoal()
          Returns a boolean value that indicates the participation and thus influence role of the social goal.
 boolean getVisDomGoal()
          Returns information for the visualisation of the agents Based on the boolean: visDomGoal the dominant goal of each agent is visualised or the behaviour an agent shows
 void setCustoId(double d_custoid)
          Sets the preference level of the identity goal in case of a customised distribution.
 void setCustoSafe(double safe)
          Sets the preference level of the safety goal in case of a customised distribution.
 void setCustoSoc(double soc)
          Sets the preference level of the social goal in case of a customised distribution.
 void setCustoSubs(double subs)
          Sets the preference level of the subsistence goal in case of a customised distribution.
 void setIdDist(java.lang.String ddist)
          Sets the type of distribution that will be used to set the preferred level of identity satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 void setIdGoal(boolean bool)
          Sets the boolean value that indicates the participation and thus influence of the identity goal in the simulation.
 void setInitId(double initid)
          Sets the initial value for the identity goal this represents the current satisfaction level
 void setInitSafe(double safe)
          Sets the initial value for the safety goal this represents the current satisfaction level
 void setInitSoc(double soc)
          Sets the initial value for the social goal this represents the current satisfaction level
 void setSafeDist(java.lang.String safeDist)
          Sets the type of distribution that will be used to set the preferred level of safety satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 void setSafeGoal(boolean bool)
          Sets the boolean value that indicates the participation and thus influence of the safety goal in the simulation.
 void setSocDist(java.lang.String socDist)
          Sets the type of distribution that will be used to set the preferred level of social satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 void setSocGoal(boolean bool)
          Sets the boolean value that indicates the participation and thus influence of the social goal in the simulation.
 void setSubsDist(java.lang.String subsDist)
          Sets the type of distribution that will be used to set the preferred level of subsistence satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents
 void setSubsGoal(boolean bool)
          Sets the boolean value that indicates the participation and thus influence of the subsistence goal in the simulation.
 void setVisDomGoal(boolean domGoal)
          Sets the visualisation of the agent to be representing the dominant goal of an agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d_instance

private static GUIparams d_instance

d_idGoal

boolean d_idGoal

d_socGoal

boolean d_socGoal

d_safeGoal

boolean d_safeGoal

d_subsGoal

boolean d_subsGoal

d_initId

double d_initId

d_initSoc

double d_initSoc

d_initSafe

double d_initSafe

d_custoId

double d_custoId

d_custoSoc

double d_custoSoc

d_custoSafe

double d_custoSafe

d_custoSubs

double d_custoSubs

d_Iddist

java.lang.String d_Iddist

d_SocDist

java.lang.String d_SocDist

d_SafeDist

java.lang.String d_SafeDist

d_SubsDist

java.lang.String d_SubsDist

d_visDomGoal

boolean d_visDomGoal
Constructor Detail

GUIparams

private GUIparams()
A private constructor as this is a singleton class can only be called by getInstance, which makes sure that this class is only instantiated once

Method Detail

getInstance

public static GUIparams getInstance()
This function returns the instantiation of this class As this is a singleton, there is only one object created which is referred to by instance.


setIdGoal

public void setIdGoal(boolean bool)
Sets the boolean value that indicates the participation and thus influence of the identity goal in the simulation.

Parameters:
bool -

getIdGoal

public boolean getIdGoal()
Returns a boolean value that indicates the particaption and thus influence role of the identity goal.

Returns:
d_idGoal

setSocGoal

public void setSocGoal(boolean bool)
Sets the boolean value that indicates the participation and thus influence of the social goal in the simulation.

Parameters:
bool -

getSocGoal

public boolean getSocGoal()
Returns a boolean value that indicates the particaption and thus influence role of the social goal.

Returns:
d_socGoal

setSafeGoal

public void setSafeGoal(boolean bool)
Sets the boolean value that indicates the participation and thus influence of the safety goal in the simulation.

Parameters:
bool -

getSafeGoal

public boolean getSafeGoal()
Returns a boolean value that indicates the participation and thus influence role of the social goal.

Returns:
d_safeGoal

setSubsGoal

public void setSubsGoal(boolean bool)
Sets the boolean value that indicates the participation and thus influence of the subsistence goal in the simulation.

Parameters:
bool -

getSubsGoal

public boolean getSubsGoal()
Returns a boolean value that indicates the participation and thus influence role of the social goal.

Returns:
d_subsGoal

getInitId

public double getInitId()
Returns the initial value of the identity goal this represents the current satisfaction level

Returns:
d_initId

setInitId

public void setInitId(double initid)
Sets the initial value for the identity goal this represents the current satisfaction level

Parameters:
initid -

getInitSoc

public double getInitSoc()
Returns the initial value of the social goal this represents the current satisfaction level

Returns:
d_initSoc

setInitSoc

public void setInitSoc(double soc)
Sets the initial value for the social goal this represents the current satisfaction level

Parameters:
soc -

getInitSafe

public double getInitSafe()
Returns the initial value of the safety goal this represents the current satisfaction level

Returns:
d_initSafe

setInitSafe

public void setInitSafe(double safe)
Sets the initial value for the safety goal this represents the current satisfaction level

Parameters:
safe -

getCustoId

public double getCustoId()
Returns the preference level of the identity goal in case is a customised distribution The preference level is a attribute of an individual which can represent in the case of the identity goal that an individual has a high/low tendency or focus for identity => higher/lower probability that the identity goal is dominant

Returns:
d_custoID

setCustoId

public void setCustoId(double d_custoid)
Sets the preference level of the identity goal in case of a customised distribution. Which means that all agents get this same preference level.

Parameters:
d_custoid -

getCustoSoc

public double getCustoSoc()
Returns the preference level of the social goal in case of a customised distribution The preference level is a attribute of an individual which can represent in the case of the social goal that an individual has a high/low tendency or focus for social => higher/lower probability that the social goal is dominant. (example: more/less susceptible for social influences)

Returns:
d_custoSoc

setCustoSoc

public void setCustoSoc(double soc)
Sets the preference level of the social goal in case of a customised distribution. Which means that all agents get this same preference level.

Parameters:
soc -

getCustoSafe

public double getCustoSafe()
Returns the preference level of the safety goal in case is is a customised distribution The preference level is a attribute of an individual which can represent in the case of the safety goal that an individual has a high/low tendency or focus for safety => higher/lower probability that the safety goal is dominant. (example: easily/hardly scared)

Returns:
d_custoSafe

setCustoSafe

public void setCustoSafe(double safe)
Sets the preference level of the safety goal in case of a customised distribution. Which means that all agents get this same preference level.

Parameters:
safe -

getCustoSubs

public double getCustoSubs()
Returns the preference level of the subsistence goal in case is is a customised distribution The preference level is a attribute of an individual which can represent in the case of the subsistence goal. This is more or less the same for individuals as it represents the energy level. todo (back this up with literature)

Returns:
d_custoSubs

setCustoSubs

public void setCustoSubs(double subs)
Sets the preference level of the subsistence goal in case of a customised distribution. Which means that all agents get this same preference level.

Parameters:
subs -

getIdDist

public java.lang.String getIdDist()
Returns the type of distribution used to set the preferred level of identity satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Returns:
d_IDdist

setIdDist

public void setIdDist(java.lang.String ddist)
Sets the type of distribution that will be used to set the preferred level of identity satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Parameters:
ddist -

getSocDist

public java.lang.String getSocDist()
Returns the type of distribution used to set the preferred level of social satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Returns:
d_SocDist

setSocDist

public void setSocDist(java.lang.String socDist)
Sets the type of distribution that will be used to set the preferred level of social satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Parameters:
socDist -

getSafeDist

public java.lang.String getSafeDist()
Returns the type of distribution used to set the preferred level of safety satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Returns:
d_SafeDist

setSafeDist

public void setSafeDist(java.lang.String safeDist)
Sets the type of distribution that will be used to set the preferred level of safety satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Parameters:
safeDist -

getSubsDist

public java.lang.String getSubsDist()
Returns the type of distribution used to set the preferred level of subsistence satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Returns:
d_SubsDist

setSubsDist

public void setSubsDist(java.lang.String subsDist)
Sets the type of distribution that will be used to set the preferred level of subsistence satisfaction for a crowd (agent set) This allows for a heterogeneous set of agents

Parameters:
subsDist -

getVisDomGoal

public boolean getVisDomGoal()
Returns information for the visualisation of the agents Based on the boolean: visDomGoal the dominant goal of each agent is visualised or the behaviour an agent shows

Returns:
d_visDomGoal

setVisDomGoal

public void setVisDomGoal(boolean domGoal)
Sets the visualisation of the agent to be representing the dominant goal of an agent.

Parameters:
domGoal -