hep.wired.cut
Class IntegerConditionDefinition

java.lang.Object
  extended by hep.wired.cut.AbstractConditionDefinition
      extended by hep.wired.cut.IntegerConditionDefinition
All Implemented Interfaces:
ConditionDefinition

public class IntegerConditionDefinition
extends AbstractConditionDefinition

Version:
$Id: IntegerConditionDefinition.java 13824 2011-05-04 18:30:02Z onoprien $
Author:
Dmitry Onoprienko

Nested Class Summary
 
Nested classes/interfaces inherited from interface hep.wired.cut.ConditionDefinition
ConditionDefinition.Type
 
Field Summary
 
Fields inherited from class hep.wired.cut.AbstractConditionDefinition
_conditions, _description, _name, _unit, _valueIsAdjusting
 
Constructor Summary
IntegerConditionDefinition(String name)
           
IntegerConditionDefinition(String name, String unit, String description)
           
 
Method Summary
 void addToDomain(int value)
          Updates the domain to ensure it contains the specified value.
 void addToDomain(org.freehep.util.Value value)
          Updates the domain to ensure it contains the specified value.
 IntegerCondition createCondition(boolean enabled, boolean inverted)
          Returns a new Condition object linked to this ConditionDefinition.
 int[] getDomain()
          Returns the domain of possible values for the condition.
 ConditionDefinition.Type getType()
          Returns the type of this condition.
 void setDomain(int min, int max)
          Sets the range of possible values for the condition.
 void setDomain(Object domain)
          Sets the domain of possible values for the condition.
 
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
 

Constructor Detail

IntegerConditionDefinition

public IntegerConditionDefinition(String name)

IntegerConditionDefinition

public IntegerConditionDefinition(String name,
                                  String unit,
                                  String description)
Method Detail

getType

public ConditionDefinition.Type getType()
Returns the type of this condition.


createCondition

public IntegerCondition 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. The argument passed to this method should be a two-element int array: [min,max].


setDomain

public void setDomain(int min,
                      int max)
Sets the range of possible values for the condition.


getDomain

public int[] getDomain()
Returns the domain of possible values for the condition. The returned object is a two-element array: [min,max].


addToDomain

public void addToDomain(org.freehep.util.Value value)
Updates the domain to ensure it contains the specified value.


addToDomain

public void addToDomain(int value)
Updates the domain to ensure it contains the specified value.



Copyright © 1996-2013 FreeHEP. All Rights Reserved.