java.lang.Object
org.pqt.autorib.instr.InstrRequest
org.pqt.autorib.instr.InstrBlockRequest
- Direct Known Subclasses:
- InstrAddRIB, InstrForRequest, InstrLights, InstrObjects, InstrRIB
- public abstract class InstrBlockRequest
- extends InstrRequest
This class is the superclass of all block style requests,
extending InstrRequest.
It includes methods to process lights and objects (
which check if the block is applies to
the given light
or object and if so iterate through the instructions in the block) and filter
(which is called by process and returns true if the block should be executed for
the given light or object)
Note that the read method of this class reads and stores all the
instructions in the block
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
protected java.util.Vector content
- Stores the instructions in the block
InstrBlockRequest
public InstrBlockRequest()
process
public void process(InstrWReader rw,
org.pqt.autorib.rib.RIBLight light)
throws org.pqt.autorib.tokenizer.FormatException,
java.io.IOException
- execute the instructions in the block if the current light
passes the filter (if any)
- Overrides:
process in class InstrRequest
process
public void process(InstrWReader rw,
org.pqt.autorib.rib.RIBObjectGroup object)
throws org.pqt.autorib.tokenizer.FormatException,
java.io.IOException
- execute the instructions in the block if appropriate
- Overrides:
process in class InstrRequest
filter
protected boolean filter(org.pqt.autorib.rib.RIBLight light)
throws org.pqt.autorib.tokenizer.FormatException
- return true if the instructions in the block should be executed
for the given light - return false by default - subclasses
should override this if they handle lights
filter
protected boolean filter(org.pqt.autorib.rib.RIBObjectGroup object)
- return true if the instructions in the block should be executed
for the given object - return false by default
- subclasses should override if they handle objects