|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.basic.value.AbstractSimValueType
jasi.sim.basic.value.AbstractComparableObject<Element>
jasi.sim.basic.element.AbstractElementBean
jasi.airtraffic.defi.FlightHandler
jasi.airtraffic.defi.FlightBean
public class FlightBean
A flight object. It implements the method of the flight interface.
| Field Summary |
|---|
| Fields inherited from interface jasi.sim.basic.element.Element |
|---|
COMPARATOR |
| Constructor Summary | |
|---|---|
FlightBean()
Constructor for a flight. |
|
FlightBean(Id id)
Constructor for a flight for a given ID. |
|
FlightBean(java.lang.String name,
Airport startAirport,
Time startTime,
Airport landAirport,
Time landTime)
Constructor for a flight. |
|
| Method Summary | |
|---|---|
Element |
delete()
Delete this element. |
Coordinate |
getCoordinate(Time time)
Calculate actual coordinate. |
Space |
getDistance()
Calculate the distance between start and landing airport. |
Coordinate |
getLandCoordinate()
Get the landing airport's coordinate. |
Speed |
getSpeed()
Calculate the speed for the flight. |
Coordinate |
getStartCoordinate()
Get the start airport's coordinate. |
Time |
getTime()
Calculate the required time for this flight. |
| Methods inherited from class jasi.airtraffic.defi.FlightHandler |
|---|
getLandAirport, getLandTime, getName, getStartAirport, getStartTime, setLandAirport, setLandTime, setName, setStartAirport, setStartTime, toString |
| Methods inherited from class jasi.sim.basic.element.AbstractElementBean |
|---|
acceptDelete, compareTo, elements, equals, get, getId, getKey, hashCode, isDeleted, registered, set, setId, setKey |
| Methods inherited from class jasi.sim.basic.value.AbstractComparableObject |
|---|
isEQ, isGE, isGT, isLE, isLT, isNE |
| Methods inherited from class jasi.sim.basic.value.AbstractSimValueType |
|---|
getContent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jasi.sim.basic.element.Element |
|---|
getKey, isDeleted, registered, setKey |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface jasi.sim.basic.id.SimObject |
|---|
getId, setId |
| Constructor Detail |
|---|
public FlightBean()
public FlightBean(Id id)
id - The ID.
public FlightBean(java.lang.String name,
Airport startAirport,
Time startTime,
Airport landAirport,
Time landTime)
name - The flight's name.startAirport - The flight's start airport.startTime - The flight's start time.landAirport - The flight's landing airport.landTime - The flight's landing time.| Method Detail |
|---|
public Element delete()
delete in interface Elementdelete in class AbstractElementBeanAbstractElementBean.delete()public Speed getSpeed()
Flight.getSpeed()public Space getDistance()
Flight.getDistance()public Time getTime()
Flight.getTime()public Coordinate getStartCoordinate()
public Coordinate getLandCoordinate()
public Coordinate getCoordinate(Time time)
time - The actual time.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||