org.jscience.architecture.lift.ca
Interface CA

All Known Implementing Classes:
DummyCA, DynZoneCA, ManualCA, SimpleCA, TrivialCA

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

goes

boolean goes(int From,
             int To,
             int CarIndex)
Return 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.

Parameters:
From - The passenger's current floor
To - The passenger's destination floor
CarIndex - The index of the Car
Returns:
true if the Car is suitable for the passenger, false otherwise

issueCommand

void issueCommand(Car C,
                  int AbsFloor)
Issues (registers) a command for the AbsFloorth Floor to the C Car. This happens when a Passenger pushes the corresponding Floor button.

Parameters:
C - DOCUMENT ME!
AbsFloor - DOCUMENT ME!

tick

void tick()
Tickable