|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.lift.ca.BidirCollALLCA
public class BidirCollALLCA
This file is licensed under the GNU Public Licens (GPL).
This is a classic Bidirectional Collecting Autonomous Low Level Control
Algorithm (ALLCA) that can be used in more sophisticated Call Allocators
(CA).
SimpleALLCA| Field Summary | |
|---|---|
static short |
BOTH_WAY
Collecting both up and down calls. |
protected short |
Direction
DOCUMENT ME! |
static short |
DOWN_WAY
Collecting down calls only. |
static short |
UP_WAY
Collecting up calls only. |
| Constructor Summary | |
|---|---|
BidirCollALLCA(Car MyCar)
Constructor |
|
| Method Summary | |
|---|---|
short |
getDirection()
Gets the direction of the calls the ALLCA is currently collecting |
boolean |
getEnableCallCancellation()
Gets the EnableCallCancellation attribute |
boolean |
getEnableNewCalls()
Gets the EnableNewCalls attribute |
boolean |
goes(int From,
int To)
Returns true if and only if the Car is allowed to travel
from floor From to floor To. |
void |
issueCommand(int AbsFloor)
Issues a new command. |
void |
setEnableCallCancellation(boolean Value)
Sets the EnableCallCancellation attribute |
void |
setEnableNewCalls(boolean Value)
Sets the EnableNewCalls attribute |
void |
tick(boolean[] UpCalls,
boolean[] DownCalls)
This is the tick() that is called by a CA. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short BOTH_WAY
public static final short DOWN_WAY
public static final short UP_WAY
protected short Direction
| Constructor Detail |
|---|
public BidirCollALLCA(Car MyCar)
MyCar - The Car used by this class| Method Detail |
|---|
public void setEnableNewCalls(boolean Value)
Value - DOCUMENT ME!public boolean getEnableNewCalls()
public void setEnableCallCancellation(boolean Value)
Value - DOCUMENT ME!public boolean getEnableCallCancellation()
public short getDirection()
public boolean goes(int From,
int To)
true if and only if the Car is allowed to travel
from floor From to floor To. For example, if the Car
has passengers inside and the passengers are going up, goes(From,To) should return false if From>To so that
no new passenger tries to get in.
From - DOCUMENT ME!To - DOCUMENT ME!
true if and only if the Car is allowed to travel from
From to Topublic void issueCommand(int AbsFloor)
AbsFloor - A destination as an Absolut Floor.
public void tick(boolean[] UpCalls,
boolean[] DownCalls)
tick() that is called by a CA.
UpCalls - The up calls that are planned to be served by this car.DownCalls - The down calls that are planned to be served by this
car.
java.lang.RuntimeException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||