Uses of Interface
adams.flow.condition.bool.BooleanCondition
-
Packages that use BooleanCondition Package Description adams.flow.condition.bool adams.flow.control adams.flow.execution.debug adams.flow.source adams.flow.standalone adams.gui.flow.tree -
-
Uses of BooleanCondition in adams.flow.condition.bool
Subinterfaces of BooleanCondition in adams.flow.condition.bool Modifier and Type Interface Description interfaceIndexedBooleanConditionBoolean conditions that return also an index, as they do encapsulate multiple boolean conditions at the same time.Classes in adams.flow.condition.bool that implement BooleanCondition Modifier and Type Class Description classAbstractAttributeCapabilitiesAncestor for capabilities-based conditions.classAbstractBooleanConditionAncestor for conditions that get evaluated in, e.g., the IfThenElse control actor, deciding which branch to take.classAbstractBooleanDatabaseConditionAncestor for conditions that operate on a database.classAbstractExpressionAncestor for conditions that use a boolean expression.classAbstractMultiConditionAncestor for conditions that use multiple sub-conditions.classAbstractScriptAncestor for boolean script conditions.classAbstractScriptedConditionAbstract ancestor for actors that execute scripts.classAdamsInstanceCapabilitiesFilters adams.data.instance.Instance based on defined capabilities.classAndPerforms a logical AND over all its sub-conditions, i.e., it only evaluates to 'true' if all of the sub-conditions evaluate to 'true' as well.classBinaryFileEvaluates to 'true' if the file exists and is a binary file.
A heuristic is used to determine whether a file is binary, based on the first 1024 bytes.classBooleanReportValueReturns 'true' if the boolean field in the report is present and is 'true'.classBytesCompleteEvaluates to 'true' if the bytes from the token are considered a 'complete' file.classCountingCounts the tokens passing through and returns 'true' if min/max/interval are met.classDirectoriesMatchEvaluates to 'true' if at least one sub-directory matches the regular expression in the specified directory.classDirectoryExistsEvaluates to 'true' if the directory exists.classExpressionEvaluates to 'true' if the expression evaluates to 'true'.
In case of java.lang.Number tokens that arrive at the input, these can be accessed in the expression via 'X'; string tokens can be accessed via expression '"X"' (surrounding double quotes are required).
If the incoming token is either a Report or a ReportHandler, the contents of the report get added as values as well (boolean, numeric or string) and you can access them via their name instead of 'X'.
The following grammar is used for evaluating the boolean expressions:
expr_list ::= '=' expr_list expr_part | expr_part ;
expr_part ::= expr ;
expr ::= ( expr )
# data types
| number
| string
| boolean
| date
# constants
| true
| false
| pi
| e
| now()
| today()
# negating numeric value
| -expr
# comparisons
| expr < expr
| expr <= expr
| expr > expr
| expr >= expr
| expr = expr
| expr !classFalseAlways evaluates to 'false'.classFileChangedEvaluates to 'true' if the file change monitor detects a change.
If a filename generator other than adams.core.io.NullFilenameGenerator is specified, then this takes precedence over the supplied filename (uses the token passing through).classFileCompleteEvaluates to 'true' if the file (from option or token) is considered complete.classFileExistsEvaluates to 'true' if the file exists.
If a filename generator other than adams.core.io.NullFilenameGenerator is specified, then this takes precedence over the supplied filename (uses the token passing through).classFileInUseEvaluates to 'true' if the file is currently being used by another process.
If a filename generator other than adams.core.io.NullFilenameGenerator is specified, then this takes precedence over the supplied filename (uses the token passing through).classFilesMatchEvaluates to 'true' if at least one file matches the regular expression in the specified directory.classGroovyA boolean condition that uses the condition defined in a Groovy script.classHasCellChecks whether the specified cell is present in the spreadsheet and has a value.classHasClassEvaluates to 'true' if the specified class is available on the classpath.classHasColumnChecks whether the spreadsheet passing through has a certain column.classHasElementsChecks whether the array passing through has a at least the specified number of elements.classHasExifTagChecks whether the specified EXIF tag is present.classHashSetEvaluates to true if the payload of the current token or the specified string (if non-empty) is present in the specified hashset.
The value gets transformed using the specified conversion.
See also:
adams.flow.standalone.HashSetInit
adams.flow.transformer.HashSetInit
classHasInterfaceEvaluates to 'true' if the objects implement the specified interface.classHasJsonValueChecks whether the specified key is present in the JSON object.
Handles tokens that contain either a JSON string or net.minidev.json.JSONAware objects.classHasLengthChecks whether the array passing through has the required number of elements.classHasMapValueEvaluates to true if the specified java.util.Map object is available in storage and a value is associated with the supplied key.classHasPropertyEvaluates to 'true' if the objects have the specified property path.classHasQueueEvaluates to true if the specified queue is available in storage.classHasRowsChecks whether the spreadsheet passing through has the required number of rows.classHasSizeChecks whether the collection passing through has the required number of elements.classHasStorageValueEvaluates to true if the specified storage value is present.classHasVariableEvaluates to true if the specified variable is set.classHasVariableValueEvaluates to true if the specified variable is present and its value is the same as the specified one.classInListChecks whether the incoming string is among the specified items.classIsAndroidEvaluates to 'true' if the operating system is Android.classIsArm64Evaluates to 'true' if the system architecture is Arm64.classIsArrayEvaluates to 'true' if the object passing through represents an array.classIsBooleanEvaluates to 'true' if the payload of the token is a boolean string (true|false).classIsByteEvaluates to 'true' if the payload of the token is a byte number/string.classIsBzip2CompressedChecks whether the file or byte array is Bzip2 compressed.classIsDoubleEvaluates to 'true' if the payload of the token is a double number/string.classIsFloatEvaluates to 'true' if the payload of the token is a float number/string.classIsGzipCompressedChecks whether the file or byte array is Gzip compressed.classIsIntegerEvaluates to 'true' if the payload of the token is an integer number/string.classIsLinuxEvaluates to 'true' if the operating system is Linux.classIsLongEvaluates to 'true' if the payload of the token is a long number/string.classIsMacEvaluates to 'true' if the operating system is a Mac.classIsMat5ArrayChecks whether the object represents a Matlab array.classIsMat5MatrixChecks whether the object represents a Matlab matrix.classIsMat5StructChecks whether the object represents a Matlab struct data structure.classIsNullEvaluates to 'true' if the payload of the token passing through is null.classIsNumericEvaluates to 'true' if the payload of the token is a number or a numeric string.classIsRarCompressedChecks whether the file or byte array is Rar compressed.classIsShortEvaluates to 'true' if the payload of the token is a short number/string.classIsSubClassEvaluates to 'true' if the objects are derived from the specified superclass.classIsWindowsEvaluates to 'true' if the operating system is a Windows variant.classIsXzCompressedChecks whether the file or byte array is Xz compressed.classIsZipCompressedChecks whether the file or byte array is Zip compressed.classIsZstdCompressedChecks whether the file or byte array is Zstd compressed.classNotNegates the output of the specified condition.classNotesErrorsEvaluates to true if the notes handler passing through has any errors recorded.classOrPerforms a logical OR over all its sub-conditions, i.e., it evaluates to 'true' if any of the sub-conditions evaluates to 'true' as well.classPromptUserPrompts the user to click on 'positive' or 'negative' button (negative button can be omitted).
The actor's name can be used in the message using the following placeholders:
{SHORT} - the short name
{FULL} - the full name (incl path)
Variables get expanded as well.
Can be used in a headless environment as well.classRegExpReturns the result of the regular expression matching the incoming string.classReportValueExistsReturns 'true' if the field in the report is present.classScriptedA boolean condition that uses the condition defined in an external script.classStorageFlagSetEvaluates to true if the specified storage value is present, a boolean and true.classTableExistsChecks whether table(s) exist that match the given regular expression.classTrueAlways evaluates to 'true'.classVariableFlagSetEvaluates to true if the specified variable is present, a boolean and true.classWekaCapabilitiesFilters weka.core.Instance and weka.core.Instances objects based on defined capabilities.classWekaClassificationUses the index of the classification, i.e., the predicted label, as index of the switch
Fields in adams.flow.condition.bool declared as BooleanCondition Modifier and Type Field Description protected BooleanConditionNot. m_Conditionthe condition to evaluate and negate.protected BooleanConditionGroovy. m_ConditionObjectthe loaded script object.protected BooleanConditionScripted. m_ConditionObjectthe loaded script object.protected BooleanCondition[]AbstractMultiCondition. m_Conditionsthe conditions to evaluate.Methods in adams.flow.condition.bool that return BooleanCondition Modifier and Type Method Description BooleanConditionBooleanConditionSupporter. getCondition()Returns the break condition to evaluate.BooleanConditionNot. getCondition()Returns the current condition.BooleanCondition[]AbstractMultiCondition. getConditions()Returns the conditions to evaluate.protected BooleanConditionNot. getDefaultCondition()Returns the default condition.BooleanConditionBooleanCondition. shallowCopy()Returns a shallow copy of itself, i.e., based on the commandline options.BooleanConditionBooleanCondition. shallowCopy(boolean expand)Returns a shallow copy of itself, i.e., based on the commandline options.Methods in adams.flow.condition.bool with parameters of type BooleanCondition Modifier and Type Method Description voidAbstractMultiCondition. addCondition(BooleanCondition value)Adds the condition to the current ones.voidBooleanConditionSupporter. setCondition(BooleanCondition value)Sets the break condition to evaluate.voidNot. setCondition(BooleanCondition value)Sets the condition.voidAbstractMultiCondition. setConditions(BooleanCondition[] value)Sets the conditions to evaluate.booleanIndexedBooleanConditionSupporter. supports(BooleanCondition condition)Returns whether the condition is supported.Constructors in adams.flow.condition.bool with parameters of type BooleanCondition Constructor Description AbstractMultiCondition(BooleanCondition[] conditions)Initializes the object with the specified conditions.And(BooleanCondition[] conditions)Initializes the object with the specified conditions.Not(BooleanCondition condition)Initializes Not with the specified base condition.Or(BooleanCondition[] conditions)Initializes the object with the specified conditions. -
Uses of BooleanCondition in adams.flow.control
Fields in adams.flow.control declared as BooleanCondition Modifier and Type Field Description protected BooleanConditionBlock. m_Conditionthe condition to evaluate.protected BooleanConditionBreakpoint. m_Conditionthe condition to evaluate.protected BooleanConditionConditionalSequence. m_Conditionthe condition that determines the execution of the subprocess items.protected BooleanConditionConditionalSubProcess. m_Conditionthe condition that determines the execution of the subprocess items.protected BooleanConditionConditionalTee. m_Conditionthe condition to use.protected BooleanConditionConditionalTrigger. m_Conditionthe condition to use.protected BooleanConditionCount. m_Conditionthe condition to use.protected BooleanConditionIfThenElse. m_Conditionthe condition used for determining to execute then/else branch.protected BooleanConditionRaiseError. m_Conditionthe condition to use.protected BooleanConditionWhileLoop. m_Conditionthe boolean condition to evaluate.protected BooleanCondition[]Switch. m_Conditionsthe "conditions" for the various switch cases.Methods in adams.flow.control that return BooleanCondition Modifier and Type Method Description BooleanConditionBlock. getCondition()Returns the current condition.BooleanConditionBreakpoint. getCondition()Returns the break condition to evaluate.BooleanConditionConditionalSequence. getCondition()Returns the condtion to evaluate.BooleanConditionConditionalSubProcess. getCondition()Returns the condtion to evaluate.BooleanConditionConditionalTee. getCondition()Returns the condition responsible for tee-ing of the token.BooleanConditionConditionalTrigger. getCondition()Returns the boolean condition.BooleanConditionCount. getCondition()Returns the condition responsible for tee-ing of the token.BooleanConditionIfThenElse. getCondition()Returns the current condition.BooleanConditionRaiseError. getCondition()Returns the condition responsible for tee-ing of the token.BooleanConditionWhileLoop. getCondition()Returns the condtion to evaluate.BooleanCondition[]Switch. getConditions()Returns the conditions to evaluate.protected BooleanConditionBlock. getDefaultCondition()Returns the default condition to use.protected BooleanConditionIfThenElse. getDefaultCondition()Returns the default condition.Methods in adams.flow.control with parameters of type BooleanCondition Modifier and Type Method Description voidBlock. setCondition(BooleanCondition value)Sets the condition.voidBreakpoint. setCondition(BooleanCondition value)Sets the break condition to evaluate.voidConditionalSequence. setCondition(BooleanCondition value)Sets the condition to evaluate.voidConditionalSubProcess. setCondition(BooleanCondition value)Sets the condition to evaluate.voidConditionalTee. setCondition(BooleanCondition value)Sets the condition responsible for tee-ing of the token.voidConditionalTrigger. setCondition(BooleanCondition value)Sets the boolean condition.voidCount. setCondition(BooleanCondition value)Sets the condition responsible for tee-ing of the token.voidIfThenElse. setCondition(BooleanCondition value)Sets the condition.voidRaiseError. setCondition(BooleanCondition value)Sets the condition responsible for tee-ing of the token.voidWhileLoop. setCondition(BooleanCondition value)Sets the condition to evaluate.voidSwitch. setConditions(BooleanCondition[] value)Sets the conditions to evaluate.booleanSwitch. supports(BooleanCondition condition)Returns whether the condition is supported.Constructors in adams.flow.control with parameters of type BooleanCondition Constructor Description Block(BooleanCondition condition)Initializes with the specified condition.ConditionalSequence(BooleanCondition condition)Initializes the actor with the specified name/condition.ConditionalSequence(String name, BooleanCondition condition)Initializes the actor with the specified name/condition.ConditionalSubProcess(BooleanCondition condition)Initializes the actor with the specified condition.ConditionalSubProcess(String name, BooleanCondition condition)Initializes the actor with the specified name/condition.ConditionalTee(BooleanCondition condition)Initializes the actor with the specified condition.ConditionalTee(String name, BooleanCondition condition)Initializes the actor with the specified name/condition.ConditionalTrigger(BooleanCondition condition)Initializes the actor with the specified condition.ConditionalTrigger(String name, BooleanCondition condition)Initializes the actor with the specified name/condition. -
Uses of BooleanCondition in adams.flow.execution.debug
Fields in adams.flow.execution.debug declared as BooleanCondition Modifier and Type Field Description protected BooleanConditionClassBreakpoint. m_Conditionthe condition to evaluate.protected BooleanConditionPathBreakpoint. m_Conditionthe condition to evaluate.protected BooleanConditionControlPanel. m_CurrentConditionthe current boolean condition.Methods in adams.flow.execution.debug that return BooleanCondition Modifier and Type Method Description BooleanConditionClassBreakpoint. getCondition()Returns the break condition to evaluate.BooleanConditionPathBreakpoint. getCondition()Returns the break condition to evaluate.BooleanConditionControlPanel. getCurrentCondition()Returns the current boolean condition.Methods in adams.flow.execution.debug with parameters of type BooleanCondition Modifier and Type Method Description voidClassBreakpoint. setCondition(BooleanCondition value)Sets the break condition to evaluate.voidPathBreakpoint. setCondition(BooleanCondition value)Sets the break condition to evaluate.voidControlPanel. setCurrentCondition(BooleanCondition value)Sets the current boolean condition. -
Uses of BooleanCondition in adams.flow.source
Fields in adams.flow.source declared as BooleanCondition Modifier and Type Field Description protected BooleanCondition[]SwitchedSource. m_Conditionsthe "conditions" for the various switch cases.Methods in adams.flow.source that return BooleanCondition Modifier and Type Method Description BooleanCondition[]SwitchedSource. getConditions()Returns the conditions to evaluate.Methods in adams.flow.source with parameters of type BooleanCondition Modifier and Type Method Description voidSwitchedSource. setConditions(BooleanCondition[] value)Sets the conditions to evaluate.booleanSwitchedSource. supports(BooleanCondition condition)Returns whether the condition is supported. -
Uses of BooleanCondition in adams.flow.standalone
Fields in adams.flow.standalone declared as BooleanCondition Modifier and Type Field Description protected BooleanConditionConditionalStandalones. m_Conditionthe condition to use.Methods in adams.flow.standalone that return BooleanCondition Modifier and Type Method Description BooleanConditionConditionalStandalones. getCondition()Returns the boolean condition.Methods in adams.flow.standalone with parameters of type BooleanCondition Modifier and Type Method Description voidConditionalStandalones. setCondition(BooleanCondition value)Sets the boolean condition. -
Uses of BooleanCondition in adams.gui.flow.tree
Methods in adams.gui.flow.tree that return BooleanCondition Modifier and Type Method Description protected BooleanConditionTreeOperations. chooseBooleanCondition(BooleanCondition defCond)Lets the user choose a boolean condition.Methods in adams.gui.flow.tree with parameters of type BooleanCondition Modifier and Type Method Description protected BooleanConditionTreeOperations. chooseBooleanCondition(BooleanCondition defCond)Lets the user choose a boolean condition.
-