|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.lift.ca.DynZoneCA
public class DynZoneCA
This file is licensed under the GNU Public Licens (GPL).
This is nice Dynamic Zoning CA that uses a SimpleALLCA for
each Car and has a pretty informative GUI.
| Field Summary | |
|---|---|
int[] |
DownMasks
DownMask[i]==n if and only if the down calls on floor
i are allocated to SimpleALLCA[n] |
int[] |
UpMasks
DownMask[i]==n if and only if the up calls on floor
i are allocated to SimpleALLCA[n] |
| Constructor Summary | |
|---|---|
DynZoneCA(boolean hasGUI)
Constructor |
|
| Method Summary | |
|---|---|
int |
getDirection(int CarIndex)
Returns the Direction of the CarIndexth Car |
boolean |
goes(int From,
int To,
int CarIndex)
Forwards the request to the corresponding SimpleALLCA |
void |
issueCommand(Car CC,
int AbsFloor)
Forwards the request to the corresponding SimpleALLCA |
void |
tick()
Tickable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[] DownMasks
DownMask[i]==n if and only if the down calls on floor
i are allocated to SimpleALLCA[n]
public int[] UpMasks
DownMask[i]==n if and only if the up calls on floor
i are allocated to SimpleALLCA[n]
| Constructor Detail |
|---|
public DynZoneCA(boolean hasGUI)
hasGUI - true if a GUI is required| Method Detail |
|---|
public boolean goes(int From,
int To,
int CarIndex)
SimpleALLCA
goes in interface CAFrom - DOCUMENT ME!To - DOCUMENT ME!CarIndex - DOCUMENT ME!
CA,
SimpleALLCA
public void issueCommand(Car CC,
int AbsFloor)
SimpleALLCA
issueCommand in interface CACC - DOCUMENT ME!AbsFloor - DOCUMENT ME!
java.lang.RuntimeException - DOCUMENT ME!CA,
SimpleALLCApublic void tick()
Tickable
tick in interface CApublic int getDirection(int CarIndex)
Direction of the CarIndexth Car
CarIndex - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||