Enum DefaultFunctionFactory.IsQualityFunction
- java.lang.Object
-
- java.lang.Enum<DefaultFunctionFactory.IsQualityFunction>
-
- com.inductiveautomation.ignition.common.expressions.DefaultFunctionFactory.IsQualityFunction
-
- All Implemented Interfaces:
Function,java.io.Serializable,java.lang.Comparable<DefaultFunctionFactory.IsQualityFunction>
- Enclosing class:
- DefaultFunctionFactory
public static enum DefaultFunctionFactory.IsQualityFunction extends java.lang.Enum<DefaultFunctionFactory.IsQualityFunction> implements Function
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IsBadIsBadOrErrorIsErrorIsUncertain
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(CommonContext context, InteractionListener updateListener)Gives the function a chance to connect itself to things, if necessary.Functioncopy()Creates a copy of this function.voiddisconnect()Tells the function to disconnect from anything it was connected to.QualifiedValueexecute(Expression[] args)Execute this function, and return the function's qualified value.java.lang.StringgetArgDocString()Returns a string to be used in the auto-generated function documentation.java.lang.Class<?>getType()Returns the type that this function will return upon executionvoidinitArgs(Expression[] args)Initialize this function with the given arguments.voidshutdown()Tells the function to shutdown any polling operations.voidstartup()Tells the function to startup any polling operations.static DefaultFunctionFactory.IsQualityFunctionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DefaultFunctionFactory.IsQualityFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IsBad
public static final DefaultFunctionFactory.IsQualityFunction IsBad
-
IsError
public static final DefaultFunctionFactory.IsQualityFunction IsError
-
IsBadOrError
public static final DefaultFunctionFactory.IsQualityFunction IsBadOrError
-
IsUncertain
public static final DefaultFunctionFactory.IsQualityFunction IsUncertain
-
-
Method Detail
-
values
public static DefaultFunctionFactory.IsQualityFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultFunctionFactory.IsQualityFunction c : DefaultFunctionFactory.IsQualityFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultFunctionFactory.IsQualityFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
execute
public QualifiedValue execute(Expression[] args) throws ExpressionException
Description copied from interface:FunctionExecute this function, and return the function's qualified value.- Specified by:
executein interfaceFunction- Throws:
ExpressionException
-
initArgs
public void initArgs(Expression[] args)
Description copied from interface:FunctionInitialize this function with the given arguments.
-
getArgDocString
public java.lang.String getArgDocString()
Description copied from interface:FunctionReturns 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:
getArgDocStringin interfaceFunction
-
copy
public Function copy()
Description copied from interface:FunctionCreates 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
public void connect(CommonContext context, InteractionListener updateListener)
Description copied from interface:FunctionGives 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:FunctionTells the function to disconnect from anything it was connected to.- Specified by:
disconnectin interfaceFunction
-
startup
public void startup()
Description copied from interface:FunctionTells 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:FunctionTells the function to shutdown any polling operations.
-
-