Enum Class DefaultFunctionFactory.IsQualityFunction
java.lang.Object
java.lang.Enum<DefaultFunctionFactory.IsQualityFunction>
com.inductiveautomation.ignition.common.expressions.DefaultFunctionFactory.IsQualityFunction
- All Implemented Interfaces:
Function
,Serializable
,Comparable<DefaultFunctionFactory.IsQualityFunction>
,Constable
- Enclosing class:
- DefaultFunctionFactory
public static enum DefaultFunctionFactory.IsQualityFunction
extends Enum<DefaultFunctionFactory.IsQualityFunction>
implements Function
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(CommonContext context, InteractionListener updateListener) Gives the function a chance to connect itself to things, if necessary.copy()
Creates a copy of this function.void
Tells the function to disconnect from anything it was connected to.execute
(Expression[] args) Execute this function, and return the function's qualified value.Returns a string to be used in the auto-generated function documentation.Class<?>
getType()
Returns the type that this function will return upon executionvoid
initArgs
(Expression[] args) Initialize this function with the given arguments.void
shutdown()
Tells the function to shutdown any polling operations.void
startup()
Tells the function to startup any polling operations.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IsBad
-
IsError
-
IsBadOrError
-
IsUncertain
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
execute
Description copied from interface:Function
Execute this function, and return the function's qualified value.- Specified by:
execute
in interfaceFunction
- Throws:
ExpressionException
-
initArgs
Description copied from interface:Function
Initialize this function with the given arguments. -
getArgDocString
Description copied from interface:Function
Returns a string to be used in the auto-generated function documentation. The string should represent the arguments for the function, such as "string, count" for the "repeat" function.- Specified by:
getArgDocString
in interfaceFunction
-
copy
Description copied from interface:Function
Creates a copy of this function. Each FunctionExpression will always retrieve a copy of the function that it wants. It is up to the function whether or not a true copy is retrieved, or simply a reference to the main function object. If the function stores transient data during serialization, and thus cannot be shared between expressions, a copy must be made. -
connect
Description copied from interface:Function
Gives the function a chance to connect itself to things, if necessary. Most functions do not have any connections. A function should notify the updateListener if they change. The implementation of InteractionListener should execute as quickly as possible, and should not block. -
disconnect
public void disconnect()Description copied from interface:Function
Tells the function to disconnect from anything it was connected to.- Specified by:
disconnect
in interfaceFunction
-
startup
public void startup()Description copied from interface:Function
Tells the function to startup any polling operations. Functions that use this can remember the updateListener from connect() to feed update notification to. -
shutdown
public void shutdown()Description copied from interface:Function
Tells the function to shutdown any polling operations. -
getType
Description copied from interface:Function
Returns the type that this function will return upon execution
-