Enum HoodOp
- java.lang.Object
-
- java.lang.Enum<HoodOp>
-
- org.protelis.lang.interpreter.util.HoodOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HoodOp>
,WithBytecode
@Deprecated public enum HoodOp extends java.lang.Enum<HoodOp> implements WithBytecode
Deprecated.Collection of functions and helper methods for reducing fields into local values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
Deprecated.Logical product.ANY
Deprecated.Logical sum.LOCAL
Deprecated.Pick local value.MAX
Deprecated.Maximum.MEAN
Deprecated.Mean of values.MIN
Deprecated.Minimum.SUM
Deprecated.Sum of values.UNION
Deprecated.Union of values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HoodOp
get(java.lang.String reducer)
Deprecated.Bytecode
getBytecode()
Deprecated.java.lang.Object
run(Field<java.lang.Object> target, boolean inclusive)
Deprecated.static HoodOp
valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name.static HoodOp[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final HoodOp ALL
Deprecated.Logical product.
-
ANY
public static final HoodOp ANY
Deprecated.Logical sum.
-
LOCAL
public static final HoodOp LOCAL
Deprecated.Pick local value.
-
MAX
public static final HoodOp MAX
Deprecated.Maximum.
-
MEAN
public static final HoodOp MEAN
Deprecated.Mean of values.
-
MIN
public static final HoodOp MIN
Deprecated.Minimum.
-
SUM
public static final HoodOp SUM
Deprecated.Sum of values.
-
UNION
public static final HoodOp UNION
Deprecated.Union of values.
-
-
Method Detail
-
values
public static HoodOp[] values()
Deprecated.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 (HoodOp c : HoodOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HoodOp valueOf(java.lang.String name)
Deprecated.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
-
getBytecode
public Bytecode getBytecode()
Deprecated.- Specified by:
getBytecode
in interfaceWithBytecode
- Returns:
- the element
Bytecode
-
run
public java.lang.Object run(Field<java.lang.Object> target, boolean inclusive)
Deprecated.- Parameters:
target
- the fieldinclusive
- true if the local value should be considered- Returns:
- the Object resulting in the hood application
-
-