Class HoodCall
- java.lang.Object
-
- org.protelis.lang.interpreter.impl.AbstractProtelisAST<java.lang.Object>
-
- org.protelis.lang.interpreter.impl.HoodCall
-
- All Implemented Interfaces:
java.io.Serializable,ProtelisAST<java.lang.Object>,WithBytecode
@Deprecated public final class HoodCall extends AbstractProtelisAST<java.lang.Object>
Deprecated.Reduce a field into a local value by reduction using aHoodOp.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HoodCall(Metadata metadata, ProtelisAST<Field<java.lang.Object>> arg, HoodOp func, boolean includeSelf)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectevaluate(ExecutionContext context)Deprecated.Evaluates this AST node.BytecodegetBytecode()Deprecated.java.lang.StringgetName()Deprecated.-
Methods inherited from class org.protelis.lang.interpreter.impl.AbstractProtelisAST
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringFor, toString
-
-
-
-
Constructor Detail
-
HoodCall
public HoodCall(Metadata metadata, ProtelisAST<Field<java.lang.Object>> arg, HoodOp func, boolean includeSelf)
Deprecated.
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(ExecutionContext context)
Deprecated.Description copied from class:AbstractProtelisASTEvaluates this AST node. This method can throw any exception,AbstractProtelisASTtakes care of storing the necessary metadata.- Specified by:
evaluatein classAbstractProtelisAST<java.lang.Object>- Parameters:
context- the execution context- Returns:
- the result of the evaluation
-
getName
public java.lang.String getName()
Deprecated.Description copied from class:AbstractProtelisAST- Specified by:
getNamein interfaceProtelisAST<java.lang.Object>- Overrides:
getNamein classAbstractProtelisAST<java.lang.Object>- Returns:
- The name of the operation
-
-