jasi.airtraffic.model
Class StartEvent

java.lang.Object
  extended by jasi.sim.basic.value.AbstractSimValueType
      extended by jasi.sim.basic.value.AbstractComparableObject<Event>
          extended by jasi.sim.basic.event.AbstractEventBean
              extended by jasi.airtraffic.model.StartEvent
All Implemented Interfaces:
Event, SimObject, ExtendedComparable<Event>, SimValue, java.io.Serializable, java.lang.Comparable<Event>

public class StartEvent
extends AbstractEventBean

An event to start an airplane and create a flight.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.event.Event
COMPARATOR, DEFAULT_PRIORITY
 
Constructor Summary
StartEvent(Time time)
          Constructor for Events.
StartEvent(Time time, int priority)
          Constructor for Events.
 
Method Summary
 Id getAirplane()
          Get the event's airplane.
 java.lang.String getFlightName()
          Get the name attribute.
 Id getLandAirport()
          Get the event's airport where to land.
 Speed getSpeed()
          Get the speed attribute.
 Id getStartAirport()
          Get the event's airport where to start.
 void setAirplane(Id airplane)
          Set the event's airplane.
static void setFlightFactory(FlightFactory factory)
          Add a factory for flights.
 void setFlightName(java.lang.String flightName)
          Set the flight name attribute.
 void setLandAirport(Id landAirport)
          Set the event's airport where to land.
 void setSpeed(Speed speed)
          Set the speed attribute.
 void setStartAirport(Id startAirport)
          Set the event's airport where to start.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class jasi.sim.basic.event.AbstractEventBean
addEventListener, calendar, compareTo, equals, getEventListeners, getId, getPriority, getTime, hashCode, imported, inform, isInitialized, isPopped, isPushed, popped, pushed, removeEventListener, setId, setPriority, setTime
 
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.value.ExtendedComparable
isEQ, isGE, isGT, isLE, isLT, isNE
 

Constructor Detail

StartEvent

public StartEvent(Time time,
                  int priority)
Constructor for Events.

Parameters:
time - The event's time.
priority - The event's priority.

StartEvent

public StartEvent(Time time)
Constructor for Events.

Parameters:
time - The event's time.
Method Detail

setFlightFactory

public static void setFlightFactory(FlightFactory factory)
Add a factory for flights.

Parameters:
factory - The factory.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class AbstractEventBean
Returns:
The string.

setFlightName

public void setFlightName(java.lang.String flightName)
Set the flight name attribute.

Parameters:
flightName - The new value of the attribute.

getFlightName

public java.lang.String getFlightName()
Get the name attribute.

Returns:
Its value.

getAirplane

public Id getAirplane()
Get the event's airplane.

Returns:
The airplane.

setAirplane

public void setAirplane(Id airplane)
Set the event's airplane.

Parameters:
airplane - The airplane.

getStartAirport

public final Id getStartAirport()
Get the event's airport where to start.

Returns:
The airport.

setStartAirport

public void setStartAirport(Id startAirport)
Set the event's airport where to start.

Parameters:
startAirport - The airport.

getLandAirport

public Id getLandAirport()
Get the event's airport where to land.

Returns:
The airport.

setLandAirport

public void setLandAirport(Id landAirport)
Set the event's airport where to land.

Parameters:
landAirport - The airport.

getSpeed

public Speed getSpeed()
Get the speed attribute.

Returns:
Its value.

setSpeed

public void setSpeed(Speed speed)
Set the speed attribute.

Parameters:
speed - The new value of the attribute.