public class Personality
extends java.lang.Object
Constructor and Description |
---|
Personality(ST8 activity,
java.lang.String vehicleId)
Constructor of Personality
|
Modifier and Type | Method and Description |
---|---|
void |
changeMobility()
Inform the personality that the agent changed mobility.
|
void |
changeVehicle()
Inform the personality that the agent changed his vehicle.
|
void |
computeSatisfactionOfAgent()
Compute satisfaction considering the choices made.
|
void |
fraud()
Inform the personality that the agent frauded.
|
Cases |
getCase()
Returns the case perceived by the agent of the policy.
|
Decision |
getDecision()
Gives the decision of the agent, made by his choice object.
|
java.lang.String |
getVehicleId()
Returns the vehicle id.
|
void |
giveSatisfactionToNeighborhoods()
Give the satisfaction to the neighborhoods that caused the decision.
|
void |
giveTime(int time) |
void |
resetPersonality()
Reset all the variables that compute satisfaction.
|
void |
setCase(Cases c)
Gives the agent's perception of the policy.
|
void |
setCauseNeighborhoods(java.util.List<Neighborhood> causeNeighborhoods)
Set the neighborhoods that caused the decision, and then will receive the satisfaction.
|
public Personality(ST8 activity, java.lang.String vehicleId)
activity
- activity of the agent, delivery or private.vehicleId
- id of the vehiclepublic void resetPersonality()
public void setCase(Cases c)
c
- case perceived by the agent to make his choice.public Cases getCase()
public Decision getDecision()
public java.lang.String getVehicleId()
public void changeVehicle()
public void changeMobility()
public void fraud()
public void setCauseNeighborhoods(java.util.List<Neighborhood> causeNeighborhoods)
public void giveTime(int time)
public void computeSatisfactionOfAgent()
public void giveSatisfactionToNeighborhoods()