org.jscience.architecture.lift.ca
Class TrivialCA

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

public class TrivialCA
extends java.lang.Object
implements CA

This file is licensed under the GNU Public Licens (GPL).
This is trivial CA that uses a SimpleALLCA for a Car. It is simplex and can not even control multi-car systems.


Constructor Summary
TrivialCA()
          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

TrivialCA

public TrivialCA()
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!
See Also:
CA, SimpleALLCA

tick

public void tick()
Tickable

Specified by:
tick in interface CA