public abstract class AbstractCondition extends Object implements Condition
Condition.| Modifier and Type | Field and Description |
|---|---|
protected ConditionDefinition |
_definition |
protected boolean |
_enabled |
protected boolean |
_inverted |
protected boolean |
_set |
| Constructor and Description |
|---|
AbstractCondition(ConditionDefinition definition,
boolean enabled,
boolean inverted) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireStateChanged()
Makes the Cut associated with this Condition fire a ChangeEvent with this Condition as a source.
|
Cut |
getCut()
Returns the Cut this Condition belongs to.
|
ConditionDefinition |
getDefinition()
Returns ConditionDefinition associated with this condition.
|
boolean |
isEnabled()
Returns true is this condition is enabled.
|
boolean |
isInverted()
Returns true is this condition is inverted.
|
void |
reset()
Resets condition to its default state.
|
void |
setCut(Cut cut)
Sets the Cut this Condition belongs to.
|
void |
setEnabled(boolean state)
Enables or disables this condition.
|
void |
setInverted(boolean state)
Sets inversion state of this condition.
|
String |
toString() |
protected ConditionDefinition _definition
protected boolean _enabled
protected boolean _inverted
protected boolean _set
public AbstractCondition(ConditionDefinition definition, boolean enabled, boolean inverted)
public Cut getCut()
public boolean isEnabled()
public boolean isInverted()
isInverted in interface Conditionpublic ConditionDefinition getDefinition()
getDefinition in interface Conditionpublic void setCut(Cut cut)
public void setEnabled(boolean state)
setEnabled in interface Conditionpublic void setInverted(boolean state)
setInverted in interface Conditionpublic void reset()
protected void fireStateChanged()
Copyright © 1996-2014 FreeHEP. All Rights Reserved.