Package jmri.jmrit.vsdecoder
Class IntTrigger
- java.lang.Object
-
- jmri.jmrit.vsdecoder.Trigger
-
- jmri.jmrit.vsdecoder.IntTrigger
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
class IntTrigger extends Trigger
Integer trigger.
This file is part of JMRI.JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.vsdecoder.Trigger
Trigger.CompareType, Trigger.CompareValueType, Trigger.TargetAction, Trigger.TriggerType
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Trigger.CompareType
compare_type
(package private) int
notch
-
Fields inherited from class jmri.jmrit.vsdecoder.Trigger
callback, event_name, target, target_name, trigger_name
-
-
Constructor Summary
Constructors Constructor Description IntTrigger(java.lang.String name)
IntTrigger(java.lang.String name, int next, Trigger.CompareType ct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trigger.CompareType
getCompareType()
int
getMatchValue()
void
propertyChange(java.beans.PropertyChangeEvent event)
void
setCompareType(Trigger.CompareType ct)
void
setMatchValue(int next)
void
setXml(org.jdom2.Element e)
-
Methods inherited from class jmri.jmrit.vsdecoder.Trigger
getCallback, getEventName, getName, getTarget, getTargetAction, getTargetName, getTriggerType, getXml, setCallback, setEventName, setName, setTarget, setTargetAction, setTargetName, setTriggerType
-
-
-
-
Field Detail
-
notch
int notch
-
compare_type
Trigger.CompareType compare_type
-
-
Constructor Detail
-
IntTrigger
public IntTrigger(java.lang.String name)
-
IntTrigger
public IntTrigger(java.lang.String name, int next, Trigger.CompareType ct)
-
-
Method Detail
-
setMatchValue
public void setMatchValue(int next)
-
getMatchValue
public int getMatchValue()
-
setCompareType
public void setCompareType(Trigger.CompareType ct)
-
getCompareType
public Trigger.CompareType getCompareType()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Specified by:
propertyChange
in classTrigger
-
-