org.jscience.architecture.lift.ca
Class SimpleCA

java.lang.Object
  extended by org.jscience.architecture.lift.ca.SimpleCA
All Implemented Interfaces:
CA

public class SimpleCA
extends java.lang.Object
implements CA

This file is licensed under the GNU Public Licens (GPL).
This is simple, static zoning CA that uses a SimpleALLCA for each Car.


Constructor Summary
SimpleCA()
          Constructor
 
Method Summary
 boolean goes(int From, int To, int CarIndex)
          CA
 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
 

Constructor Detail

SimpleCA

public SimpleCA()
Constructor

Method Detail

goes

public boolean goes(int From,
                    int To,
                    int CarIndex)
CA

Specified by:
goes in interface CA
Parameters:
From - DOCUMENT ME!
To - DOCUMENT ME!
CarIndex - DOCUMENT ME!
Returns:
DOCUMENT ME!

issueCommand

public void issueCommand(Car CC,
                         int AbsFloor)
Forwards the request to the corresponding SimpleALLCA

Specified by:
issueCommand in interface CA
Parameters:
CC - DOCUMENT ME!
AbsFloor - DOCUMENT ME!
Throws:
java.lang.RuntimeException - DOCUMENT ME!
See Also:
CA, SimpleALLCA

tick

public void tick()
Tickable

Specified by:
tick in interface CA