scheduler
Class TravelConstraints

java.lang.Object
  extended byscheduler.TravelConstraints

public class TravelConstraints
extends java.lang.Object

A class describing the travel constraints.

Author:
Piotrek

Field Summary
 java.util.Date dateLimit
          A time limit.
 boolean fIsLimitDeparture
          Indicates whether the limit date is a limit for the departure (if true) or for the arrival (otherwise).
 boolean isAirplaneAllowed
          Indicates whether the airplane is an allowed mean of transportation.
 boolean isBusAllowed
          Indicates whether the bus is an allowed mean of transportation.
 boolean isShipAllowed
          Indicates whether the ship is an allowed mean of transportation.
 boolean isTaxiAllowed
          Indicates whether the taxi is an allowed mean of transportation.
 boolean isTrainAllowed
          Indicates whether the train is an allowed mean of transportation.
 int maxChangesCount
          Defines a maximal number of changes during the travel.
 int maxChangeTime
          Defines the maximal time of change (in minutes).
 int minChangeTime
          Defines the minimal time of change (in minutes).
 int timeBeforeCruise
          Defines the time (in minutes) one need to be before a cruise at the harbour.
 int timeBeforeFlight
          Defines the time (in minutes) one need to be before a flight at the airport.
 
Constructor Summary
TravelConstraints()
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fIsLimitDeparture

public boolean fIsLimitDeparture
Indicates whether the limit date is a limit for the departure (if true) or for the arrival (otherwise).


dateLimit

public java.util.Date dateLimit
A time limit.


isTaxiAllowed

public boolean isTaxiAllowed
Indicates whether the taxi is an allowed mean of transportation.


isTrainAllowed

public boolean isTrainAllowed
Indicates whether the train is an allowed mean of transportation.


isBusAllowed

public boolean isBusAllowed
Indicates whether the bus is an allowed mean of transportation.


isAirplaneAllowed

public boolean isAirplaneAllowed
Indicates whether the airplane is an allowed mean of transportation.


isShipAllowed

public boolean isShipAllowed
Indicates whether the ship is an allowed mean of transportation.


maxChangesCount

public int maxChangesCount
Defines a maximal number of changes during the travel.


minChangeTime

public int minChangeTime
Defines the minimal time of change (in minutes).


maxChangeTime

public int maxChangeTime
Defines the maximal time of change (in minutes).


timeBeforeFlight

public int timeBeforeFlight
Defines the time (in minutes) one need to be before a flight at the airport.


timeBeforeCruise

public int timeBeforeCruise
Defines the time (in minutes) one need to be before a cruise at the harbour.

Constructor Detail

TravelConstraints

public TravelConstraints()
Constructor.