|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.gui.GUIparams
public class GUIparams
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
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 |
---|
private static GUIparams d_instance
boolean d_idGoal
boolean d_socGoal
boolean d_safeGoal
boolean d_subsGoal
double d_initId
double d_initSoc
double d_initSafe
double d_custoId
double d_custoSoc
double d_custoSafe
double d_custoSubs
java.lang.String d_Iddist
java.lang.String d_SocDist
java.lang.String d_SafeDist
java.lang.String d_SubsDist
boolean d_visDomGoal
Constructor Detail |
---|
private GUIparams()
Method Detail |
---|
public static GUIparams getInstance()
public void setIdGoal(boolean bool)
bool
- public boolean getIdGoal()
public void setSocGoal(boolean bool)
bool
- public boolean getSocGoal()
public void setSafeGoal(boolean bool)
bool
- public boolean getSafeGoal()
public void setSubsGoal(boolean bool)
bool
- public boolean getSubsGoal()
public double getInitId()
public void setInitId(double initid)
initid
- public double getInitSoc()
public void setInitSoc(double soc)
soc
- public double getInitSafe()
public void setInitSafe(double safe)
safe
- public double getCustoId()
public void setCustoId(double d_custoid)
d_custoid
- public double getCustoSoc()
public void setCustoSoc(double soc)
soc
- public double getCustoSafe()
public void setCustoSafe(double safe)
safe
- public double getCustoSubs()
public void setCustoSubs(double subs)
subs
- public java.lang.String getIdDist()
public void setIdDist(java.lang.String ddist)
ddist
- public java.lang.String getSocDist()
public void setSocDist(java.lang.String socDist)
socDist
- public java.lang.String getSafeDist()
public void setSafeDist(java.lang.String safeDist)
safeDist
- public java.lang.String getSubsDist()
public void setSubsDist(java.lang.String subsDist)
subsDist
- public boolean getVisDomGoal()
public void setVisDomGoal(boolean domGoal)
domGoal
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |