T
- The subclass of the builder.public static class Passenger.Builder<T extends Passenger.Builder<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
checkedIn |
protected MathDistribution |
checkPointCollectTime |
protected MathDistribution |
checkPointDropTime |
protected java.awt.Color |
color |
protected double |
desiredSpeed |
protected java.lang.Class<? extends Facility> |
facility |
protected Flight |
flight |
protected java.util.Collection<Luggage> |
luggage |
protected double |
mass |
protected OperationalModel |
operationalModel |
protected Position |
position |
protected double |
radius |
protected StrategicModel |
strategicModel |
protected TacticalModel |
tacticalModel |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Passenger |
build()
Creates the passenger.
|
T |
setCheckedIn(boolean checkedIn)
Set checked in.
|
T |
setColor(java.awt.Color color)
Set the color.
|
T |
setFacility(java.lang.Class<? extends Facility> facility)
Set the facility to visit.
|
T |
setFlight(Flight flight)
Set the
Flight . |
T |
setLuggage(java.util.Collection<Luggage> luggage)
Set the luggage.
|
T |
setLuggage(Luggage luggage)
Set the luggage.
|
T |
setMass(double mass)
Set the mass.
|
T |
setOperationalModel(OperationalModel operationalModel)
Set the operational model.
|
T |
setPosition(Position position)
Set the
Position . |
T |
setRadius(double radius)
Set the radius.
|
T |
setStrategicModel(StrategicModel strategicModel)
Set the strategic model.
|
T |
setTacticalModel(TacticalModel tacticalModel)
Set the tactical model.
|
protected Flight flight
protected boolean checkedIn
protected java.lang.Class<? extends Facility> facility
protected Position position
protected double radius
protected double mass
protected double desiredSpeed
protected java.util.Collection<Luggage> luggage
protected StrategicModel strategicModel
protected TacticalModel tacticalModel
protected OperationalModel operationalModel
protected java.awt.Color color
protected MathDistribution checkPointDropTime
protected MathDistribution checkPointCollectTime
public Passenger build()
public T setCheckedIn(boolean checkedIn)
checkedIn
- Checked in or not.public T setColor(java.awt.Color color)
color
- The color.public T setFacility(java.lang.Class<? extends Facility> facility)
facility
- The facility.public T setFlight(Flight flight)
Flight
.flight
- The flight.public T setLuggage(java.util.Collection<Luggage> luggage)
luggage
- The luggage.public T setLuggage(Luggage luggage)
luggage
- The luggage.public T setMass(double mass)
mass
- The mass.public T setOperationalModel(OperationalModel operationalModel)
operationalModel
- The operational model.public T setPosition(Position position)
Position
.position
- The position.public T setRadius(double radius)
radius
- The radius.public T setStrategicModel(StrategicModel strategicModel)
strategicModel
- The strategic model.public T setTacticalModel(TacticalModel tacticalModel)
tacticalModel
- The tactical model.