hep.wired.cut
Class BooleanConditionDefinition
java.lang.Object
hep.wired.cut.AbstractConditionDefinition
hep.wired.cut.BooleanConditionDefinition
- All Implemented Interfaces:
- ConditionDefinition
public class BooleanConditionDefinition
- extends AbstractConditionDefinition
Definition for conditions based on boolean value.
Domain if fixed so setters do nothing and getter returns null.
- Version:
- $Id: BooleanConditionDefinition.java 13824 2011-05-04 18:30:02Z onoprien $
- Author:
- Dmitry Onoprienko
Methods inherited from class hep.wired.cut.AbstractConditionDefinition |
addChangeListener, createCondition, fireStateChanged, fireStateChanged, getDescription, getName, getUnit, getValueIsAdjusting, remove, removeChangeListener, removeCondition, setValueIsAdjusting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanConditionDefinition
public BooleanConditionDefinition(String name)
BooleanConditionDefinition
public BooleanConditionDefinition(String name,
String description)
getType
public ConditionDefinition.Type getType()
- Returns the type of this condition.
createCondition
public BooleanCondition createCondition(boolean enabled,
boolean inverted)
- Returns a new
Condition
object linked to this ConditionDefinition.
setDomain
public void setDomain(Object domain)
- Sets the domain of possible values for the condition.
Domain is fixed for boolean conditions so this method does nothing.
getDomain
public Object getDomain()
- Returns the domain of possible values for the condition.
Domain is fixed for boolean conditions so this method returns null.
addToDomain
public void addToDomain(org.freehep.util.Value value)
- Updates the domain to ensure it contains the specified value.
Domain is fixed for boolean conditions so this method does nothing.
Copyright © 1996-2013 FreeHEP. All Rights Reserved.