|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Car
This file is licensed under the GNU Public Licens (GPL).
This is the fundamental interface of all Cars.
| Field Summary | |
|---|---|
static int |
CLOSING
The car is closing its doors |
static int |
GOING_DOWN
The car is waiting with going down |
static int |
GOING_UP
The car is waiting with going up |
static int |
OPENING
The car is opening its doors |
static int |
PARKING
The car is parking with closed doors |
static int |
WAITING
The car is waiting with open doors |
| Method Summary | |
|---|---|
boolean |
closeDoor()
Tries to open the Car's door. |
void |
decreaseNumberOfPassangers()
This method is called whenever a passenger leaves the Car. |
int |
getCapacity()
Returns the capacity of the Car, measured in persons |
int |
getCrtF()
Returns the current floor of the Car |
int |
getDstF()
Returns the destination floor of the Car if it is
moving. |
KinematicModel |
getKinematicModel()
Returns the KinematicModel of the Car |
int |
getNoPs()
Returns the number of Passengers currently travelling in
the Car |
int |
getPossibleNextFloor()
Returns the destination floor of the Car. |
int |
getProgress()
Returns the progress of the current action (closing door, going to somewhere, etc) of the Car from its KinematicModel. |
int |
getSrcF()
Returns the source floor of the Car if it is moving. |
int |
getState()
Returns the current state of the Car. |
boolean |
gotoFloor(int TargetFloor)
Tries to send the Car to floor TargetFloor. |
void |
increaseNumberOfPassangers()
This method is called whenever a passenger enters the Car. |
boolean |
isEmpty()
Returns true if and only if the Car is empty. |
boolean |
isFull()
Returns true if and only if the Car is full. |
boolean |
isMoving()
Returns true if and only if the Car is moving. |
boolean |
mayStopAt(int AbsFloor)
Returns true if and only if the Car may stop at AbsFloor before it's planned next stop from the Car's KinematicModel. |
boolean |
openDoor()
Tries to open the Car's door. |
void |
setCapacity(int NewCapacity)
Sets the capacity of the Car, measured in persons |
java.lang.String |
toString()
Object |
| Methods inherited from interface org.jscience.architecture.lift.TickableInterface |
|---|
getFullName, getID, getName, getVersion, Tick |
| Field Detail |
|---|
static final int PARKING
static final int CLOSING
static final int OPENING
static final int WAITING
static final int GOING_UP
static final int GOING_DOWN
| Method Detail |
|---|
void decreaseNumberOfPassangers()
Car.
void increaseNumberOfPassangers()
Car.
boolean closeDoor()
Car's door.
true if and only if succesful.int getCapacity()
Car, measured in persons
void setCapacity(int NewCapacity)
Car, measured in persons
NewCapacity - DOCUMENT ME!int getCrtF()
Car
int getDstF()
Car if it is
moving.
KinematicModel getKinematicModel()
KinematicModel of the Car
int getNoPs()
Passengers currently travelling in
the Car
int getPossibleNextFloor()
Car. This is the
next floor where the car could stop, according to its KinematicModel.
int getProgress()
Car from its KinematicModel.
int getSrcF()
Car if it is moving.
int getState()
Car.
boolean gotoFloor(int TargetFloor)
Car to floor TargetFloor.
TargetFloor - DOCUMENT ME!
true if and only if succesful.boolean isEmpty()
Car is empty.
boolean isFull()
Car is full.
boolean isMoving()
Car is moving.
boolean mayStopAt(int AbsFloor)
Car may stop at AbsFloor before it's planned next stop from the Car's KinematicModel.
AbsFloor - DOCUMENT ME!
boolean openDoor()
Car's door.
true if and only if succesful.java.lang.String toString()
Object
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||