|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.condition.bool.AbstractBooleanCondition
adams.flow.condition.bool.AbstractAttributeCapabilities
public abstract class AbstractAttributeCapabilities
Ancestor for capabilities-based conditions.
| Field Summary | |
|---|---|
protected weka.core.Capabilities |
m_ActualCapabilities
the capabilities object to use. |
protected Capability[] |
m_Capabilities
the class index. |
protected boolean |
m_Invert
whether to invert the matching sense. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractAttributeCapabilities()
|
|
| Method Summary | |
|---|---|
abstract Class[] |
accepts()
Returns the class that the consumer accepts. |
String |
capabilitiesTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected abstract boolean |
doEvaluate(AbstractActor owner,
Token token)
Evaluates whether to executed the "then" or "else" branch. |
Capability[] |
getCapabilities()
Returns the capabilities. |
boolean |
getInvert()
Returns whether the matching sense of the capabilities is inverted. |
String |
getQuickInfo()
Returns the quick info string to be displayed in the flow editor. |
String |
invertTipText()
Returns the tip text for this property. |
protected void |
reset()
Resets the scheme. |
void |
setCapabilities(Capability[] value)
Sets the capabilities. |
void |
setInvert(boolean value)
Sets whether to invert the matching sense of the capabilities. |
String |
setUp(AbstractActor owner)
Configures the condition. |
| Methods inherited from class adams.flow.condition.bool.AbstractBooleanCondition |
|---|
evaluate, preEvaluate, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Capability[] m_Capabilities
protected boolean m_Invert
protected weka.core.Capabilities m_ActualCapabilities
| Constructor Detail |
|---|
public AbstractAttributeCapabilities()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerprotected void reset()
reset in class AbstractOptionHandlerpublic void setCapabilities(Capability[] value)
value - the capabilitiespublic Capability[] getCapabilities()
public String capabilitiesTipText()
public void setInvert(boolean value)
value - if true then the matching sense gets invertedpublic boolean getInvert()
public String invertTipText()
public String getQuickInfo()
getQuickInfo in interface BooleanConditiongetQuickInfo in class AbstractBooleanConditionpublic abstract Class[] accepts()
accepts in interface BooleanConditionaccepts in class AbstractBooleanConditionpublic String setUp(AbstractActor owner)
setUp in interface BooleanConditionsetUp in class AbstractBooleanConditionowner - the actor this condition belongs to
protected abstract boolean doEvaluate(AbstractActor owner,
Token token)
doEvaluate in class AbstractBooleanConditionowner - the owning IfThenElse actortoken - the current token passing through the IfThenElse actor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||