jmri
Class SensorTurnoutOperation

java.lang.Object
  extended by jmri.TurnoutOperation
      extended by jmri.CommonTurnoutOperation
          extended by jmri.SensorTurnoutOperation
All Implemented Interfaces:
Comparable<Object>

public class SensorTurnoutOperation
extends CommonTurnoutOperation

SensorTurnoutOperation class - specialization of TurnoutOperation to provide automatic retry for a turnout with explicit feedback from sensor(s)

Author:
John Harper Copyright 2005

Field Summary
static int defaultInterval
           
static int defaultMaxTries
           
 
Fields inherited from class jmri.CommonTurnoutOperation
intervalStepSize, maxInterval, maxMaxTries, minInterval, minMaxTries
 
Constructor Summary
SensorTurnoutOperation()
          constructor with default values - this creates the "defining instance" of the operation type hence it cannot be deleted
SensorTurnoutOperation(String n, int i, int mt)
           
 
Method Summary
 int getDefaultInterval()
           
 int getDefaultMaxTries()
           
 TurnoutOperator getOperator(AbstractTurnout t)
          get a TurnoutOperator instance for this operation
 TurnoutOperation makeCopy(String n)
          return clone with different name
 
Methods inherited from class jmri.CommonTurnoutOperation
equivalentTo, getInterval, getMaxTries, setInterval, setMaxTries
 
Methods inherited from class jmri.TurnoutOperation
addPropertyChangeListener, compareTo, dispose, getDefinitive, getName, isDefinitive, isDeleted, isInUse, isNonce, makeNonce, matchFeedbackMode, removePropertyChangeListener, rename, setFeedbackModes, setNonce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultInterval

public static final int defaultInterval
See Also:
Constant Field Values

defaultMaxTries

public static final int defaultMaxTries
See Also:
Constant Field Values
Constructor Detail

SensorTurnoutOperation

public SensorTurnoutOperation(String n,
                              int i,
                              int mt)

SensorTurnoutOperation

public SensorTurnoutOperation()
constructor with default values - this creates the "defining instance" of the operation type hence it cannot be deleted

Method Detail

makeCopy

public TurnoutOperation makeCopy(String n)
return clone with different name

Specified by:
makeCopy in class TurnoutOperation
Parameters:
n - name for new copy
Returns:
TurnoutOperation of same concrete class as this

getDefaultInterval

public int getDefaultInterval()
Specified by:
getDefaultInterval in class CommonTurnoutOperation

getDefaultMaxTries

public int getDefaultMaxTries()
Specified by:
getDefaultMaxTries in class CommonTurnoutOperation

getOperator

public TurnoutOperator getOperator(AbstractTurnout t)
get a TurnoutOperator instance for this operation

Specified by:
getOperator in class CommonTurnoutOperation
Parameters:
t - the turnout to apply the operation to
Returns:
the operator


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads