Package jmri.jmrit.vsdecoder
Class FloatTrigger
- java.lang.Object
-
- jmri.jmrit.vsdecoder.Trigger
-
- jmri.jmrit.vsdecoder.FloatTrigger
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener
class FloatTrigger extends Trigger
Float 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.CompareTypecompare_type(package private) java.lang.Floatmatch_value-
Fields inherited from class jmri.jmrit.vsdecoder.Trigger
callback, event_name, target, target_name, trigger_name
-
-
Constructor Summary
Constructors Constructor Description FloatTrigger(java.lang.String name, java.lang.Float next, Trigger.CompareType ct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trigger.CompareTypegetCompareType()java.lang.FloatgetMatchValue()org.jdom2.ElementgetXml()voidpropertyChange(java.beans.PropertyChangeEvent event)voidsetCompareType(Trigger.CompareType ct)voidsetMatchValue(java.lang.Float next)voidsetXml(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
-
match_value
java.lang.Float match_value
-
compare_type
Trigger.CompareType compare_type
-
-
Constructor Detail
-
FloatTrigger
public FloatTrigger(java.lang.String name, java.lang.Float next, Trigger.CompareType ct)
-
-
Method Detail
-
setMatchValue
public void setMatchValue(java.lang.Float next)
-
getMatchValue
public java.lang.Float getMatchValue()
-
setCompareType
public void setCompareType(Trigger.CompareType ct)
-
getCompareType
public Trigger.CompareType getCompareType()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Specified by:
propertyChangein classTrigger
-
-