Package jmri.jmrit.vsdecoder
Class BoolTrigger
- java.lang.Object
-
- jmri.jmrit.vsdecoder.Trigger
-
- jmri.jmrit.vsdecoder.BoolTrigger
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
class BoolTrigger extends Trigger
Boolean 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) boolean
match_value
-
Fields inherited from class jmri.jmrit.vsdecoder.Trigger
callback, event_name, target, target_name, trigger_name
-
-
Constructor Summary
Constructors Constructor Description BoolTrigger(java.lang.String name)
BoolTrigger(java.lang.String name, boolean bv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getMatchValue()
org.jdom2.Element
getXml()
void
propertyChange(java.beans.PropertyChangeEvent event)
void
setMatchValue(boolean bv)
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
-
match_value
boolean match_value
-
-
Constructor Detail
-
BoolTrigger
public BoolTrigger(java.lang.String name)
-
BoolTrigger
public BoolTrigger(java.lang.String name, boolean bv)
-
-
Method Detail
-
setMatchValue
public void setMatchValue(boolean bv)
-
getMatchValue
public boolean getMatchValue()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Specified by:
propertyChange
in classTrigger
-
-