Package jmri.jmrit.vsdecoder
Class NotchTrigger
- java.lang.Object
-
- jmri.jmrit.vsdecoder.Trigger
-
- jmri.jmrit.vsdecoder.NotchTrigger
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
class NotchTrigger extends Trigger
Notch 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) int
current_notch
(package private) int
prev_notch
-
Fields inherited from class jmri.jmrit.vsdecoder.Trigger
callback, event_name, target, target_name, trigger_name
-
-
Constructor Summary
Constructors Constructor Description NotchTrigger(java.lang.String name)
NotchTrigger(java.lang.String name, int prev, int cur)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNotch()
org.jdom2.Element
getXml()
void
propertyChange(java.beans.PropertyChangeEvent event)
void
setNotch(int next)
void
setXml(org.jdom2.Element e)
-
Methods inherited from class jmri.jmrit.vsdecoder.Trigger
getCallback, getEventName, getName, getTarget, getTargetAction, getTargetName, getTriggerType, setCallback, setEventName, setName, setTarget, setTargetAction, setTargetName, setTriggerType
-
-
-
-
Field Detail
-
current_notch
int current_notch
-
prev_notch
int prev_notch
-
-
Constructor Detail
-
NotchTrigger
public NotchTrigger(java.lang.String name)
-
NotchTrigger
public NotchTrigger(java.lang.String name, int prev, int cur)
-
-
Method Detail
-
setNotch
public void setNotch(int next)
-
getNotch
public int getNotch()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Specified by:
propertyChange
in classTrigger
-
-