Package adams.flow.condition.test
Interface TestCondition
-
- All Superinterfaces:
QuickInfoSupporter
,ShallowCopySupporter<TestCondition>
- All Known Implementing Classes:
AbstractScript
,AbstractScriptedCondition
,AbstractTestCondition
,DirExists
,FileExists
,Groovy
,Jython
,MultiCondition
,OptionalFlowExecution
,Scripted
,True
public interface TestCondition extends ShallowCopySupporter<TestCondition>, QuickInfoSupporter
Interface for test conditions.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.String
getTestResult()
Returns the test result of testing the conditions.TestCondition
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options.TestCondition
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options.
-
-
-
Method Detail
-
getQuickInfo
String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceQuickInfoSupporter
- Returns:
- null if no info available, otherwise short string
-
getTestResult
String getTestResult()
Returns the test result of testing the conditions. Performs the test, if necessary.- Returns:
- the test result, null if everything OK, otherwise the error message
-
shallowCopy
TestCondition shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options.- Specified by:
shallowCopy
in interfaceShallowCopySupporter<TestCondition>
- Returns:
- the shallow copy
-
shallowCopy
TestCondition shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options.- Specified by:
shallowCopy
in interfaceShallowCopySupporter<TestCondition>
- Parameters:
expand
- whether to expand variables to their current values- Returns:
- the shallow copy
-
-