public class Passenger extends AatomHumanAgent
HumanAgent
that is a passenger in the
simulation.Modifier and Type | Class and Description |
---|---|
static class |
Passenger.Builder<T extends Passenger.Builder<T>>
Builder class for passenger.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
checkedIn
Facility visit or not.
|
private java.lang.Class<? extends Facility> |
facility
Facility type.
|
private Flight |
flight
The
Flight of the agent. |
private java.util.Collection<Luggage> |
luggage
The
Luggage of the agent. |
operationalModel, strategicModel, tacticalModel
color, mass
position
map
Modifier | Constructor and Description |
---|---|
protected |
Passenger(Flight flight,
boolean checkedIn,
java.lang.Class<? extends Facility> facility,
Position position,
double radius,
double mass,
java.util.Collection<Luggage> luggage,
StrategicModel strategicModel,
TacticalModel tacticalModel,
OperationalModel operationalModel,
java.awt.Color color)
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Facility> |
getFacilityVisit()
Gets facility type.
|
Flight |
getFlight()
Gets the
Flight the passenger is on. |
java.util.Collection<Luggage> |
getLuggage()
Gets the
Luggage . |
boolean |
isCheckedIn()
Checks if the passenger is checked in.
|
void |
update(int timeStep)
Update the agent's position and internal representations using the
generated move of the
OperationalModel , the
StrategicModel.update(int) and TacticalModel.update(int)
methods. |
communicate, getActiveActivity, getCurrentVelocity, getDesiredSpeed, getGoalPosition, getGoalPositions, getObservation, getReachedGoal, getStopOrder, init, isQueuing, isSitting, wantsToBeDestoryed
getColor, getMass, toString
getRadius, getVectorToPosition, isLineCollision
getDistance, getPosition
isDestroyed
private java.lang.Class<? extends Facility> facility
private boolean checkedIn
protected Passenger(Flight flight, boolean checkedIn, java.lang.Class<? extends Facility> facility, Position position, double radius, double mass, java.util.Collection<Luggage> luggage, StrategicModel strategicModel, TacticalModel tacticalModel, OperationalModel operationalModel, java.awt.Color color)
flight
- The flight the agent is on.checkedIn
- Checked in or not.facility
- Facility visit or not.position
- The position on the map.radius
- The radius.mass
- The mass.luggage
- The Baggage.strategicModel
- The strategic model.tacticalModel
- The tactical model.operationalModel
- The operational model.color
- The color.public boolean isCheckedIn()
public java.lang.Class<? extends Facility> getFacilityVisit()
public java.util.Collection<Luggage> getLuggage()
Luggage
.public void update(int timeStep)
AatomHumanAgent
OperationalModel
, the
StrategicModel.update(int)
and TacticalModel.update(int)
methods.update
in interface Updatable
update
in class AatomHumanAgent
timeStep
- The used time step (in milliseconds) in the simulation.