|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CA
This file is licensed under the GNU Public Licens (GPL).
This interface defines the methods that must be implemented by all Control
Algorithms (also called as High-Level Controls, Call Dispatcher Algorithms,
Call Allocation Algorithms, Call Scheduler Algorithms, etc).
| Method Summary | |
|---|---|
boolean |
goes(int From,
int To,
int CarIndex)
Return true if the CarIndexth car goes from
Floor From to Floor To. |
void |
issueCommand(Car C,
int AbsFloor)
Issues (registers) a command for the AbsFloorth Floor to
the C Car. |
void |
tick()
Tickable |
| Method Detail |
|---|
boolean goes(int From,
int To,
int CarIndex)
true if the CarIndexth car goes from
Floor From to Floor To. This is used to notify the
passengers so they can decide if they want to get into the car or not.
From - The passenger's current floorTo - The passenger's destination floorCarIndex - The index of the Car
true if the Car is suitable for the passenger, false
otherwise
void issueCommand(Car C,
int AbsFloor)
AbsFloorth Floor to
the C Car. This happens when a Passenger pushes the
corresponding Floor button.
C - DOCUMENT ME!AbsFloor - DOCUMENT ME!void tick()
Tickable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||