stoppers
Class MetaStop
java.lang.Object
stoppers.SimpleStop
stoppers.MetaStop
- public class MetaStop
- extends SimpleStop
Use this Stopper to combine together several simple Stoppers to look
for more complicated patterns. MetaStop can return either the maximum
value of any of its subsidiary stoppers or the average value, set using
the tag &ValueMode (either "Max" or "Average"). You can have MetaStop
stop a run when any one of the subsidiary Stoppers wants to stop, or
only when all of them want to stop. Use the tag &StopMode (either "And" or "Or").
As with other Stoppers you can also set a &StopTime and a &Cutoff score.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaStop
public MetaStop()
stop
public boolean stop(float time)
- Overrides:
stop
in class SimpleStop
setCutoff
public void setCutoff(float c)
- Overrides:
setCutoff
in class SimpleStop
getScore
public float getScore()
- Overrides:
getScore
in class SimpleStop
didPass
public boolean didPass()
- Overrides:
didPass
in class SimpleStop
didPass
public boolean didPass(float s)
- Overrides:
didPass
in class SimpleStop
reset
public void reset()
- Overrides:
reset
in class SimpleStop
loadParameters
public void loadParameters(BetterTokenizer tokenizer)
throws java.lang.Exception
- Overrides:
loadParameters
in class SimpleStop
- Throws:
java.lang.Exception
loadParameter
protected void loadParameter(java.lang.String info,
BetterTokenizer tokenizer)
throws java.lang.Exception
- Overrides:
loadParameter
in class SimpleStop
- Throws:
java.lang.Exception
getStopTime
public float getStopTime()
- Overrides:
getStopTime
in class SimpleStop
setStopTime
public void setStopTime(float newtime)
- Overrides:
setStopTime
in class SimpleStop