|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthep.wired.cut.AbstractCondition
public abstract class AbstractCondition
Adapter for implementing Condition
.
Field Summary | |
---|---|
protected ConditionDefinition |
_definition
|
protected boolean |
_enabled
|
protected boolean |
_inverted
|
protected boolean |
_set
|
Constructor Summary | |
---|---|
AbstractCondition(ConditionDefinition definition,
boolean enabled,
boolean inverted)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hep.wired.cut.Condition |
---|
get, getStatus, pass, set |
Field Detail |
---|
protected ConditionDefinition _definition
protected boolean _enabled
protected boolean _inverted
protected boolean _set
Constructor Detail |
---|
public AbstractCondition(ConditionDefinition definition, boolean enabled, boolean inverted)
Method Detail |
---|
public Cut getCut()
getCut
in interface Condition
public boolean isEnabled()
isEnabled
in interface Condition
public boolean isInverted()
isInverted
in interface Condition
public ConditionDefinition getDefinition()
getDefinition
in interface Condition
public void setCut(Cut cut)
setCut
in interface Condition
public void setEnabled(boolean state)
setEnabled
in interface Condition
public void setInverted(boolean state)
setInverted
in interface Condition
public void reset()
reset
in interface Condition
protected void fireStateChanged()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |