A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes All Packages

A

absent() - Static method in class org.protelis.lang.datatype.Option
Returns an empty Option instance.
AbstractComparableDeviceUID<T extends java.lang.Comparable<T>> - Class in org.protelis.lang.datatype.impl
Simple container class for immutable, comparable UIDs.
AbstractComparableDeviceUID(T) - Constructor for class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
 
AbstractExecutionContext<S extends AbstractExecutionContext<S>> - Class in org.protelis.vm.impl
Partial implementation of ExecutionContext, containing functionality expected to be shared between most implementations.
AbstractExecutionContext(ExecutionEnvironment, NetworkManager) - Constructor for class org.protelis.vm.impl.AbstractExecutionContext
Create a new AbstractExecutionContext with a default, time-efficient code path factory.
AbstractExecutionContext(ExecutionEnvironment, NetworkManager, CodePathFactory) - Constructor for class org.protelis.vm.impl.AbstractExecutionContext
Create a new AbstractExecutionContext with the specified CodePathFactory.
AbstractField<T> - Class in org.protelis.lang.datatype.impl
Core functionality for implementing a field that cannot be included in the interface.
AbstractField() - Constructor for class org.protelis.lang.datatype.impl.AbstractField
 
AbstractPersistedTree<S,​T> - Class in org.protelis.lang.interpreter.impl
Basic implementation of a persisted tree.
AbstractPersistedTree(Metadata, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.AbstractPersistedTree
 
AbstractPersistedTree(Metadata, ProtelisAST<?>...) - Constructor for class org.protelis.lang.interpreter.impl.AbstractPersistedTree
 
AbstractProtelisAST<T> - Class in org.protelis.lang.interpreter.impl
Basic implementation of an ProtelisAST.
AbstractProtelisAST(Metadata, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
AbstractProtelisAST(Metadata, ProtelisAST<?>...) - Constructor for class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
accept(Map<String, Object>, List<Pair<String, String>>) - Method in class org.protelis.test.matcher.TestEqual
 
add(DeviceUID, T) - Method in interface org.protelis.lang.datatype.Field.Builder
Adds an element to the field.
add(DeviceUID, T) - Method in class org.protelis.lang.datatype.impl.FieldMapImpl.Builder
 
addCommand(Command<T>) - Method in class it.unibo.alchemist.core.implementations.Engine
 
addOutputMonitor(OutputMonitor<T>) - Method in class it.unibo.alchemist.core.implementations.Engine
 
addOutputMonitor(Environment<T>, OutputMonitor<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
Statically searches for the simulation running some environment, and adds an OutputMonitor to it.
ALIGNED_MAP - org.protelis.lang.interpreter.util.Bytecode
 
ALIGNED_MAP_DEFAULT - org.protelis.lang.interpreter.util.Bytecode
 
ALIGNED_MAP_EXECUTE - org.protelis.lang.interpreter.util.Bytecode
 
ALIGNED_MAP_FILTER - org.protelis.lang.interpreter.util.Bytecode
 
ALIGNED_MAP_GENERATOR - org.protelis.lang.interpreter.util.Bytecode
 
AlignedMap - Class in org.protelis.lang.interpreter.impl
Operation evaluating a collection of expressions associated with keys, such as a set of publish-subscribe streams.
AlignedMap(HashingFunnel, Metadata, ProtelisAST<Field<?>>, ProtelisAST<FunctionDefinition>, ProtelisAST<FunctionDefinition>, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.AlignedMap
 
all(Field<Boolean>) - Static method in class org.protelis.Builtins
 
All - Class in org.protelis.lang.interpreter.impl
Evaluate a sequence of statements, returning the value of the last statement.
All(Metadata, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.All
Block of statements.
ALL - org.protelis.lang.interpreter.util.Bytecode
 
ALL - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Logical product.
allButSelf(Field<Boolean>) - Static method in class org.protelis.Builtins
 
AND - org.protelis.lang.interpreter.util.Op2
Logical AND operation.
any(Field<Boolean>) - Static method in class org.protelis.Builtins
 
ANY - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Logical sum.
anyButSelf(Field<Boolean>) - Static method in class org.protelis.Builtins
 
append(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
append(Object) - Method in interface org.protelis.lang.datatype.Tuple
Add an element to the end of a tuple.
apply(A, B, C) - Method in interface org.protelis.lang.interpreter.util.TriFunction
Applies this function to the given arguments.
apply(Object) - Method in class org.protelis.lang.interpreter.util.Java8CompatibleFunnel
 
apply(BiFunction<T, Object[], R>, boolean, int[], T, Object...) - Static method in class org.protelis.lang.datatype.Fields
 
apply(BinaryOperator<Object>, int[], Object, Object) - Static method in class org.protelis.lang.datatype.Fields
 
apply(Function<Object[], R>, boolean, int[], Object, Object...) - Static method in class org.protelis.lang.datatype.Fields
 
apply(Function<Object[], R>, int[], Object...) - Static method in class org.protelis.lang.datatype.Fields
 
apply(Map<String, Object>) - Method in class org.protelis.test.matcher.TestCount
 
apply(TriFunction<Object, Object, Object, R>, int[], Object, Object, Object) - Static method in class org.protelis.lang.datatype.Fields
 
APPLY - Static variable in class org.protelis.lang.interpreter.impl.Invoke
Special method name, that causes a Protelis function invocation if the left hand side of the Invoke is a FunctionDefinition.
applyWithSingleParam(UnaryOperator<Object>, int[], Object) - Static method in class org.protelis.lang.datatype.Fields
 
argumentsToExpressionStream(InvocationArguments) - Static method in class org.protelis.lang.ProtelisLoadingUtilities
 
ArrayTupleImpl - Class in org.protelis.lang.datatype.impl
Implementation of a Tuple using an array data structure.
ArrayTupleImpl(Object...) - Constructor for class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
ArrayTupleImpl(Object, int) - Constructor for class org.protelis.lang.datatype.impl.ArrayTupleImpl
Create an ArrayTupleImpl with all elements initialized to a given value.
asSet() - Method in class org.protelis.lang.datatype.Option
 
AssignmentOp - Class in org.protelis.lang.interpreter.impl
Declare a variable from a "let" expression.
AssignmentOp(Metadata, Reference, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.AssignmentOp
 

B

BINARY_AND - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_DIFFERS - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_DIVIDE - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_EQUALS - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_GREATER - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_GREATER_EQUAL - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_MAX - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_MIN - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_MINUS - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_MODULUS - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_OR - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_PLUS - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_POWER - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_SMALLER - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_SMALLER_EQUAL - org.protelis.lang.interpreter.util.Bytecode
 
BINARY_TIMES - org.protelis.lang.interpreter.util.Bytecode
 
BinaryOp - Class in org.protelis.lang.interpreter.impl
Two-argument (inline) operator, such as addition.
BinaryOp(Metadata, String, ProtelisAST<?>, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.BinaryOp
 
branchesToString() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
branchesToString(CharSequence, CharSequence, CharSequence) - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
Returns a String representing the branches of this tree with the specified format.
build() - Method in class it.unibo.alchemist.core.implementations.Engine.StateCommand
Performs the building of a Command according to the previously called methods.
build(DeviceUID, T) - Method in interface org.protelis.lang.datatype.Field.Builder
Builds a Field.
build(DeviceUID, T) - Method in class org.protelis.lang.datatype.impl.FieldMapImpl.Builder
 
Builder() - Constructor for class org.protelis.lang.datatype.impl.FieldMapImpl.Builder
 
buildField(Function<T, R>, T) - Method in interface org.protelis.vm.ExecutionContext
Builds a new Field, fetching data from all the aligned neighbors.
buildField(Function<T, R>, T) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
buildFieldDeferred(Function<T, R>, T, Supplier<T>) - Method in interface org.protelis.vm.ExecutionContext
Builds a new Field, fetching data from all the aligned neighbors.
buildFieldDeferred(Function<T, R>, T, Supplier<T>) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
buildSimulation(Environment<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
buildSimulation(Environment<T>, long) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
buildSimulation(Environment<T>, long, Time) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
buildSimulation(Environment<T>, Time) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
Builtins - Class in org.protelis
Collection of static methods automatically imported by Protelis.
Bytecode - Enum in org.protelis.lang.interpreter.util
Associates a unique identifier to each Protelis interpreter entity.

C

CachingNetworkManager - Class in org.protelis.test.infrastructure
Abstraction of networking used by the virtual machine: at each execution round, the VM needs to be able to access the most recent state received from neighbors and to be able to update the state that it is exporting to neighbors.
CachingNetworkManager() - Constructor for class org.protelis.test.infrastructure.CachingNetworkManager
 
cloneAction(Node<Object>, Reaction<Object>) - Method in class org.protelis.test.infrastructure.RunProtelisProgram
 
CodePath - Interface in org.protelis.vm
A CodePath is a trace from the root to some node in a VM execution tree.
CodePathFactory - Interface in org.protelis.vm
A function which is able to build a CodePath given the current Protelis stack status.
commit() - Method in class org.protelis.test.infrastructure.ProtelisNode
 
commit() - Method in interface org.protelis.vm.ExecutionContext
Called just after the VM is executed, to finalize information of the execution for the environment.
commit() - Method in interface org.protelis.vm.ExecutionEnvironment
Called just after the VM is executed, to finalize information of the execution for the environment.
commit() - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
commit() - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
commitRecursively() - Method in class org.protelis.vm.impl.AbstractExecutionContext
recursively commits on restricted contexts.
compareTo(AbstractComparableDeviceUID<T>) - Method in class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
 
compareTo(Tuple) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
compute(ExecutionContext) - Method in class org.protelis.vm.impl.SimpleProgramImpl
 
compute(ExecutionContext) - Method in interface org.protelis.vm.ProtelisProgram
Execute one round of computation of this Protelis program.
ConditionalSideEffect - Class in org.protelis.lang.interpreter.impl
Branch with side effects, returns Unit.
ConditionalSideEffect(Metadata, ProtelisAST<Boolean>, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.ConditionalSideEffect
 
Constant<T> - Class in org.protelis.lang.interpreter.impl
An arbitrary object-valued constant.
Constant(Metadata, T) - Constructor for class org.protelis.lang.interpreter.impl.Constant
 
CONSTANT - org.protelis.lang.interpreter.util.Bytecode
 
contains(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
contains(Object) - Method in interface org.protelis.lang.datatype.Tuple
Tests whether the tuple has an element equal to its argument.
containsAll(Iterable<?>) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
containsAll(Iterable<?>) - Method in interface org.protelis.lang.datatype.Tuple
Tests whether the tuple has an element equal to its argument.
containsKey(DeviceUID) - Method in interface org.protelis.lang.datatype.Field
Verifies if some device has an entry in this field.
containsKey(DeviceUID) - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
containsKey(DeviceUID) - Method in class org.protelis.lang.datatype.impl.LazyField
 
CREATE_TUPLE - org.protelis.lang.interpreter.util.Bytecode
 
CREATE_VARIABLE - org.protelis.lang.interpreter.util.Bytecode
 
createAction(RandomGenerator, Environment<Object>, Node<Object>, TimeDistribution<Object>, Reaction<Object>, String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createCodePath(TIntList, TIntStack) - Method in interface org.protelis.vm.CodePathFactory
Creates a CodePath for the current stack status.
createCodePath(TIntList, TIntStack) - Method in class org.protelis.vm.impl.HashingCodePathFactory
 
createConcentration(String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createCondition(RandomGenerator, Environment<Object>, Node<Object>, TimeDistribution<Object>, Reaction<Object>, String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createFieldBuilder() - Static method in class org.protelis.lang.datatype.DatatypeFactory
 
createMolecule(String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createNode(RandomGenerator, Environment<Object>, String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createReaction(RandomGenerator, Environment<Object>, Node<Object>, TimeDistribution<Object>, String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createT() - Method in class org.protelis.test.infrastructure.ProtelisNode
 
createTimeDistribution(RandomGenerator, Environment<Object>, Node<Object>, String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
createTuple(Object...) - Static method in class org.protelis.lang.datatype.DatatypeFactory
 
createTuple(List<?>) - Static method in class org.protelis.lang.datatype.DatatypeFactory
 
CreateTuple - Class in org.protelis.lang.interpreter.impl
Construct a Tuple.
CreateTuple(Metadata, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.CreateTuple
 

D

DatatypeFactory - Class in org.protelis.lang.datatype
Static factory for Protelis data types.
DC - Static variable in class org.protelis.test.InfrastructureTester
Skip this value while comparing results.
DefaultTimeEfficientCodePath - Class in org.protelis.vm.impl
A CodePath whose focus is on time performance.
DefaultTimeEfficientCodePath(TIntList) - Constructor for class org.protelis.vm.impl.DefaultTimeEfficientCodePath
 
DELTA - Static variable in class org.protelis.test.InfrastructureTester
Tolerance while comparing double values.
DeviceUID - Interface in org.protelis.lang.datatype
The DeviceUID class can be implemented however is appropriate for a given system.
DeviceUUID - Class in org.protelis.lang.datatype.impl
DeviceUID based on UUIDs.
DeviceUUID() - Constructor for class org.protelis.lang.datatype.impl.DeviceUUID
Generate a random UUID.
DeviceUUID(UUID) - Constructor for class org.protelis.lang.datatype.impl.DeviceUUID
 
DIFFERS - org.protelis.lang.interpreter.util.Op2
Inequality comparison operation.
DIVIDE - org.protelis.lang.interpreter.util.Op2
Arithmetic division operation.
DOT_OPERATOR - org.protelis.lang.interpreter.util.Bytecode
 
DOT_OPERATOR_ARGUMENTS - org.protelis.lang.interpreter.util.Bytecode
 
DOT_OPERATOR_TARGET - org.protelis.lang.interpreter.util.Bytecode
 
DummyContext - Class in org.protelis.test.infrastructure
A **dummy** Protelis VM to be used for testing.
DummyContext() - Constructor for class org.protelis.test.infrastructure.DummyContext
 
DummyContext(NetworkManager) - Constructor for class org.protelis.test.infrastructure.DummyContext
 
DummyDevice - Class in org.protelis.test.infrastructure
A simple implementation of a Protelis-based device, encapsulating a ProtelisVM and a network interface.
DummyDevice(Environment<Object>, ProtelisNode, Reaction<Object>, RandomGenerator, NetworkManager) - Constructor for class org.protelis.test.infrastructure.DummyDevice
 

E

Either<L,​R> - Class in org.protelis.lang.datatype
A data structure that can yield either a value of type L or a value of type R.
empty() - Static method in class org.protelis.lang.datatype.Option
Returns an empty Option instance.
Engine<T> - Class in it.unibo.alchemist.core.implementations
This class implements a simulation.
Engine(Environment<T>, long) - Constructor for class it.unibo.alchemist.core.implementations.Engine
Builds a simulation for a given environment.
Engine(Environment<T>, long, Time) - Constructor for class it.unibo.alchemist.core.implementations.Engine
Builds a simulation for a given environment.
Engine(Environment<T>, Time) - Constructor for class it.unibo.alchemist.core.implementations.Engine
Builds a simulation for a given environment.
Engine.StateCommand<T> - Class in it.unibo.alchemist.core.implementations
This class provides a flexible Builder to create a new Command whose aim is to change the status of a Engine.
Env - Class in org.protelis.lang.interpreter.impl
 
Env(Metadata) - Constructor for class org.protelis.lang.interpreter.impl.Env
 
ENV - org.protelis.lang.interpreter.util.Bytecode
 
equals(Object) - Method in class org.protelis.lang.datatype.Either
 
equals(Object) - Method in class org.protelis.lang.datatype.FunctionDefinition
 
equals(Object) - Method in class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
 
equals(Object) - Method in class org.protelis.lang.datatype.impl.AbstractField
equals(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
equals(Object) - Method in class org.protelis.lang.datatype.Option
 
equals(Object) - Method in class org.protelis.lang.interpreter.util.Reference
 
equals(Object) - Method in class org.protelis.vm.impl.DefaultTimeEfficientCodePath
 
equals(Object) - Method in class org.protelis.vm.impl.HashingCodePathFactory.HashingCodePath
 
EQUALS - org.protelis.lang.interpreter.util.Op2
Equality comparison operation.
eval(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
eval(ExecutionContext) - Method in interface org.protelis.lang.interpreter.ProtelisAST
Evaluates the program using the passed ExecutionContext.
Eval - Class in org.protelis.lang.interpreter.impl
Evaluate a Protelis sub-program.
Eval(Metadata, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.Eval
 
EVAL - org.protelis.lang.interpreter.util.Bytecode
 
EVAL_DYNAMIC_CODE - org.protelis.lang.interpreter.util.Bytecode
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
Evaluates this AST node.
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.AlignedMap
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.All
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.AssignmentOp
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.BinaryOp
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.ConditionalSideEffect
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.Constant
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.CreateTuple
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.Env
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.Eval
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.FunctionCall
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.GenericHoodCall
Deprecated.
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.HoodCall
Deprecated.
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.If
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.Invoke
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.JvmConstant
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.NBRCall
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.Self
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.ShareCall
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.TernaryOp
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.UnaryOp
 
evaluate(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.Variable
 
ExceptionObserver - Interface in org.protelis.test.observer
This observer intercepts exception thrown during the tests.
exceptionThrown(Exception) - Method in interface org.protelis.test.observer.ExceptionObserver
An exception has been thrown.
exceptionThrown(Exception) - Method in class org.protelis.test.observer.SimpleExceptionObserver
 
execute() - Method in class org.protelis.test.infrastructure.RunProtelisProgram
 
ExecutionContext - Interface in org.protelis.vm
Interface between a ProtelisVM and environment in which it is executing.
ExecutionEnvironment - Interface in org.protelis.vm
The ExecutionEnvironment is responsible of managing environment variables.

F

Field<T> - Interface in org.protelis.lang.datatype
A field associates a collection of devices to values.
Field.Builder<T> - Interface in org.protelis.lang.datatype
Builder for Fields.
FieldMapImpl<T> - Class in org.protelis.lang.datatype.impl
Field implementation based on neighbor/value pairs stored in an ImmutableMap.
FieldMapImpl.Builder<T> - Class in org.protelis.lang.datatype.impl
Builder for an immutable field.
Fields - Class in org.protelis.lang.datatype
Utility class for Field.
fieldToMap(Field<T>) - Static method in class org.protelis.Builtins
Reifies a Field into a Java Map for interoperability and debug purposes.
fill(Object, int) - Static method in class org.protelis.lang.datatype.Tuples
Create a Tuple with all elements initialized to the same value.
fillInStackFrame(ProtelisAST<?>) - Method in exception org.protelis.lang.interpreter.util.ProtelisRuntimeException
Populates the exception stack with a new caller.
filter(Predicate<? super E>) - Method in class org.protelis.lang.datatype.Option
 
filter(Predicate<Object>) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
filter(Predicate<Object>) - Method in interface org.protelis.lang.datatype.Tuple
Given a tuple and a Predicate, returns a new tuple containing only the elements that match the predicate.
filter(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
filter(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.Option
Filter operation using Protelis functions.
filter(ExecutionContext, FunctionDefinition) - Method in interface org.protelis.lang.datatype.Tuple
Given a tuple and a predicate, returns a new tuple containing only the elements that match the predicate.
filterNot(Predicate<? super E>) - Method in class org.protelis.lang.datatype.Option
filterNot(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.Option
Inverse filter operation using Protelis functions.
flatMap(Function<? super E, Option<X>>) - Method in class org.protelis.lang.datatype.Option
 
flatMap(Function<Object, Tuple>) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
flatMap(Function<Object, Tuple>) - Method in interface org.protelis.lang.datatype.Tuple
Provided a function generating tuples from the tuple elements, maps this tuple to a new tuple, and then flattens the result into a single tuple.
flatMap(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.Option
Optional.flatMap(Function) function callable via Protelis.
flatMap(ExecutionContext, FunctionDefinition) - Method in interface org.protelis.lang.datatype.Tuple
Provided a function generating tuples from the tuple elements, maps this tuple to a new tuple, and then flattens the result into a single tuple.
fold(Object, BinaryOperator<Object>) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
fold(Object, BinaryOperator<Object>) - Method in interface org.protelis.lang.datatype.Tuple
Performs a reduction operation, that maps a tuple to a single value.
fold(ExecutionContext, Object, FunctionDefinition) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
fold(ExecutionContext, Object, FunctionDefinition) - Method in interface org.protelis.lang.datatype.Tuple
Performs a reduction operation, that maps a tuple to a single value.
foldExcludingLocal(Map.Entry<DeviceUID, T>, BinaryOperator<Map.Entry<DeviceUID, T>>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation with base value (fold), which does not consider the local value, and whose computation has base as initial element.
foldExcludingLocal(R, Function<Map.Entry<DeviceUID, T>, R>, BinaryOperator<R>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation with base value (fold), which does not consider the local value, and whose computation has base as initial element.
foldHood(ExecutionContext, T, Field<T>, FunctionDefinition) - Static method in class org.protelis.Builtins
Folds a field, excluding the local value.
foldHoodPlusSelf(ExecutionContext, Field<T>, FunctionDefinition) - Static method in class org.protelis.Builtins
Folds the field, including the local value.
foldIncludingLocal(BinaryOperator<Map.Entry<DeviceUID, T>>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation with base value (fold), which uses the local value as initial element.
foldIncludingLocal(Function<Map.Entry<DeviceUID, T>, R>, BinaryOperator<R>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation with base value (fold), which uses the local value as initial element.
foldKeysExcludingLocal(DeviceUID, BinaryOperator<DeviceUID>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over keys with base value (fold), which does not consider the local key, and whose computation has base as initial element.
foldKeysIncludingLocal(BinaryOperator<DeviceUID>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over keys with base value (fold), which uses the local value as initial element.
foldMax(Field<T>) - Static method in class org.protelis.Builtins
Folds the field, including the local value, by picking the maximum value.
foldMax(T, Field<T>) - Static method in class org.protelis.Builtins
Folds a field by picking the maximum of its values, excluding the local value.
foldMean(Field<? extends Number>) - Static method in class org.protelis.Builtins
Folds a field of numbers by computing the mathematical mean.
foldMin(Field<T>) - Static method in class org.protelis.Builtins
Folds the field, including the local value, by picking the minimum value.
foldMin(T, Field<T>) - Static method in class org.protelis.Builtins
Folds a field by picking the minimum of its values, excluding the local value.
foldSum(Field<T>) - Static method in class org.protelis.Builtins
Folds the field, including the local value, by computing the sum.
foldSum(T, Field<T>) - Static method in class org.protelis.Builtins
Folds a field by computing the sum of its values, excluding the local value.
foldUnion(Field<T>) - Static method in class org.protelis.Builtins
Folds the field, including the local value, by computing the union.
foldUnion(T, Field<T>) - Static method in class org.protelis.Builtins
Folds a field by computing the union, excluding the local value.
foldValuesExcludingLocal(T, BinaryOperator<T>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over values with base value (fold), which does not consider the local key, and whose computation has base as initial element.
foldValuesIncludingLocal(BinaryOperator<T>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over values with base value (fold), which uses the local value as initial element.
forEach(Consumer<? super ProtelisAST<?>>) - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
Facility to run lambdas across all the branches.
forEachWithIndex(BiConsumer<Integer, ? super ProtelisAST<?>>) - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
Facility to run lambdas across all the branches.
fromEnvironment(Environment<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
Given an environment, returns the corresponding simulation.
fromGuava(Optional<E>) - Static method in class org.protelis.lang.datatype.Option
 
fromJavaUtil(Optional<E>) - Static method in class org.protelis.lang.datatype.Option
 
fromNullable(E) - Static method in class org.protelis.lang.datatype.Option
Returns an Option describing the specified value, if non-null, otherwise returns an empty Option.
FUNCTION_CALL - org.protelis.lang.interpreter.util.Bytecode
 
FunctionCall - Class in org.protelis.lang.interpreter.impl
Call a Protelis function.
FunctionCall(Metadata, FunctionDefinition, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.FunctionCall
 
FunctionDefinition - Class in org.protelis.lang.datatype
First-class Protelis function.
FunctionDefinition(FunctionDef, Supplier<ProtelisAST<?>>) - Constructor for class org.protelis.lang.datatype.FunctionDefinition
 
FunctionDefinition(Lambda, List<Reference>, ProtelisAST<?>) - Constructor for class org.protelis.lang.datatype.FunctionDefinition
 

G

GENERIC_HOOD_CALL - org.protelis.lang.interpreter.util.Bytecode
 
GENERIC_HOOD_CALL_DEFAULT - org.protelis.lang.interpreter.util.Bytecode
 
GENERIC_HOOD_CALL_FIELD - org.protelis.lang.interpreter.util.Bytecode
 
GENERIC_HOOD_CALL_FUNCTION - org.protelis.lang.interpreter.util.Bytecode
 
GENERIC_HOOD_CALL_REDUCE - org.protelis.lang.interpreter.util.Bytecode
 
GenericHoodCall - Class in org.protelis.lang.interpreter.impl
Deprecated.
GenericHoodCall(Metadata, boolean, JvmOperation, ProtelisAST<?>, ProtelisAST<Field<Object>>) - Constructor for class org.protelis.lang.interpreter.impl.GenericHoodCall
Deprecated.
 
GenericHoodCall(Metadata, boolean, ProtelisAST<FunctionDefinition>, ProtelisAST<?>, ProtelisAST<Field<Object>>) - Constructor for class org.protelis.lang.interpreter.impl.GenericHoodCall
Deprecated.
 
get() - Method in class org.protelis.lang.datatype.Option
 
get(double) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
Compatibility method to speed up calls made using doubles.
get(int) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
get(int) - Method in interface org.protelis.lang.datatype.Tuple
Retrieve the object at one of a tuple's indices.
get(Double) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
Compatibility method to speed up calls made using doubles.
get(String) - Static method in enum org.protelis.lang.interpreter.util.HoodOp
Deprecated.
 
get(String) - Method in class org.protelis.test.infrastructure.ProtelisNode
 
get(String) - Method in interface org.protelis.vm.ExecutionEnvironment
 
get(String) - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
get(String, Object) - Method in class org.protelis.test.infrastructure.ProtelisNode
 
get(String, Object) - Method in interface org.protelis.vm.ExecutionEnvironment
 
get(String, Object) - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
get(DeviceUID) - Method in interface org.protelis.lang.datatype.Field
 
get(DeviceUID) - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
getArgumentByPosition(int) - Method in class org.protelis.lang.datatype.FunctionDefinition
 
getBody() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
getBranch(int) - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
getBranch(int) - Method in interface org.protelis.lang.interpreter.ProtelisAST
 
getBranches() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
getBranches() - Method in interface org.protelis.lang.interpreter.ProtelisAST
 
getBranchesNumber() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.AlignedMap
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.All
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.AssignmentOp
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.BinaryOp
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.ConditionalSideEffect
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.Constant
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.CreateTuple
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.Env
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.Eval
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.FunctionCall
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.GenericHoodCall
Deprecated.
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.HoodCall
Deprecated.
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.If
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.Invoke
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.JvmConstant
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.NBRCall
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.Self
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.ShareCall
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.TernaryOp
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.UnaryOp
 
getBytecode() - Method in class org.protelis.lang.interpreter.impl.Variable
 
getBytecode() - Method in enum org.protelis.lang.interpreter.util.HoodOp
Deprecated.
 
getBytecode() - Method in enum org.protelis.lang.interpreter.util.Op1
 
getBytecode() - Method in enum org.protelis.lang.interpreter.util.Op2
 
getBytecode() - Method in enum org.protelis.lang.interpreter.util.Op3
 
getBytecode() - Method in interface org.protelis.lang.interpreter.util.WithBytecode
 
getCode() - Method in enum org.protelis.lang.interpreter.util.Bytecode
 
getConditionExpression() - Method in class org.protelis.lang.interpreter.impl.If
 
getConstantValue() - Method in class org.protelis.lang.interpreter.impl.Constant
 
getContext() - Method in class org.protelis.test.infrastructure.RunProtelisProgram
 
getCoordinates() - Method in class org.protelis.test.infrastructure.DummyDevice
 
getCoordinates() - Method in interface org.protelis.vm.LocalizedDevice
TODO: define coordinate.
getCurrentTime() - Method in class org.protelis.test.infrastructure.DummyContext
 
getCurrentTime() - Method in class org.protelis.test.infrastructure.DummyDevice
 
getCurrentTime() - Method in interface org.protelis.vm.ExecutionContext
 
getCurrentValue() - Method in class org.protelis.vm.ProtelisVM
Return the value computed in the most recent execution cycle.
getDataExtractors() - Method in class it.unibo.alchemist.loader.YamlLoader
 
getDefault() - Method in class it.unibo.alchemist.loader.YamlLoader
 
getDeltaTime() - Method in class org.protelis.test.infrastructure.DummyContext
 
getDeltaTime() - Method in class org.protelis.test.infrastructure.DummyDevice
 
getDeltaTime() - Method in interface org.protelis.vm.ExecutionContext
 
getDeltaTime() - Method in class org.protelis.vm.impl.AbstractExecutionContext
getDependencyGraph() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getDeviceUID() - Method in class org.protelis.test.infrastructure.DummyContext
 
getDeviceUID() - Method in class org.protelis.test.infrastructure.DummyDevice
 
getDeviceUID() - Method in interface org.protelis.vm.ExecutionContext
 
getElseExpression() - Method in class org.protelis.lang.interpreter.impl.If
 
getEndLine() - Method in interface org.protelis.lang.loading.Metadata
 
getEnvironment() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getEnvironment() - Method in class org.protelis.test.infrastructure.RunProtelisProgram
 
getError() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getExceptionList() - Method in interface org.protelis.test.observer.ExceptionObserver
 
getExceptionList() - Method in class org.protelis.test.observer.SimpleExceptionObserver
 
getExecutionEnvironment() - Method in interface org.protelis.vm.ExecutionContext
 
getExecutionEnvironment() - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
getExpectedType() - Method in interface org.protelis.lang.datatype.Field
 
getFinalStep() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getFinalTime() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getFirstException() - Method in interface org.protelis.test.observer.ExceptionObserver
 
getFirstException() - Method in class org.protelis.test.observer.SimpleExceptionObserver
 
getFunction() - Method in enum org.protelis.lang.interpreter.util.Op2
 
getFunctionDefinition() - Method in class org.protelis.lang.interpreter.impl.FunctionCall
 
getFunctions() - Method in class org.protelis.vm.impl.AbstractExecutionContext
Support for first-class functions by returning the set of currently accessible functions.
getHash() - Method in class org.protelis.vm.impl.HashingCodePathFactory.HashingCodePath
 
getIfPresent(DeviceUID) - Method in interface org.protelis.lang.datatype.Field
 
getIfPresent(DeviceUID) - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
getIfPresent(DeviceUID) - Method in class org.protelis.lang.datatype.impl.LazyField
 
getLastException() - Method in interface org.protelis.test.observer.ExceptionObserver
 
getLastException() - Method in class org.protelis.test.observer.SimpleExceptionObserver
 
getLeft() - Method in class org.protelis.lang.datatype.Either
 
getLeftExpression() - Method in class org.protelis.lang.interpreter.impl.Invoke
 
getLocal() - Method in interface org.protelis.lang.datatype.Field
 
getLocalDevice() - Method in interface org.protelis.lang.datatype.Field
 
getLocalDevice() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
getLocalDevice() - Method in class org.protelis.lang.datatype.impl.LazyField
 
getLocalValue() - Method in interface org.protelis.lang.datatype.Field
 
getLocalValue() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
getMemberName() - Method in class org.protelis.lang.datatype.JVMEntity
 
getMessage() - Method in exception org.protelis.lang.interpreter.util.ProtelisRuntimeException
 
getMetadata() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
getMetadata() - Method in interface org.protelis.lang.interpreter.ProtelisAST
 
getModifiedMolecules() - Method in class org.protelis.test.infrastructure.RunProtelisProgram
 
getMultiRunResult(ExceptionObserver, String) - Static method in class org.protelis.test.InfrastructureTester.TestMatcher
 
getName() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
getName() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
getName() - Method in class org.protelis.lang.interpreter.impl.AlignedMap
 
getName() - Method in class org.protelis.lang.interpreter.impl.All
 
getName() - Method in class org.protelis.lang.interpreter.impl.AssignmentOp
getName() - Method in class org.protelis.lang.interpreter.impl.BinaryOp
 
getName() - Method in class org.protelis.lang.interpreter.impl.Constant
getName() - Method in class org.protelis.lang.interpreter.impl.FunctionCall
 
getName() - Method in class org.protelis.lang.interpreter.impl.GenericHoodCall
Deprecated.
getName() - Method in class org.protelis.lang.interpreter.impl.HoodCall
Deprecated.
 
getName() - Method in class org.protelis.lang.interpreter.impl.Invoke
getName() - Method in class org.protelis.lang.interpreter.impl.JvmConstant
 
getName() - Method in class org.protelis.lang.interpreter.impl.NBRCall
 
getName() - Method in class org.protelis.lang.interpreter.impl.ShareCall
 
getName() - Method in class org.protelis.lang.interpreter.impl.TernaryOp
 
getName() - Method in class org.protelis.lang.interpreter.impl.UnaryOp
 
getName() - Method in class org.protelis.lang.interpreter.impl.Variable
 
getName() - Method in interface org.protelis.lang.interpreter.ProtelisAST
 
getName() - Method in class org.protelis.vm.impl.SimpleProgramImpl
 
getName() - Method in interface org.protelis.vm.ProtelisProgram
The name of the program.
getNeighborState() - Method in class org.protelis.test.infrastructure.CachingNetworkManager
Called by ProtelisVM during execution to collect the most recent information available from neighbors.
getNeighborState() - Method in class org.protelis.vm.impl.SimpleNetworkManager
 
getNeighborState() - Method in interface org.protelis.vm.NetworkManager
Called by ProtelisVM during execution to collect the most recent information available from neighbors.
getNetworkManager() - Method in class org.protelis.test.infrastructure.ProtelisNode
 
getNetworkManager() - Method in class org.protelis.vm.impl.AbstractExecutionContext
Accessor for abstract network interface.
getNode() - Method in class org.protelis.test.infrastructure.RunProtelisProgram
 
getOp(String) - Static method in enum org.protelis.lang.interpreter.util.Op1
Translates a name into an operator.
getOp(String) - Static method in enum org.protelis.lang.interpreter.util.Op2
Translates a name into an operator.
getOp(String) - Static method in enum org.protelis.lang.interpreter.util.Op3
 
getParameterCount() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
getPersistent(Supplier<P>) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
getPersistent(Supplier<S>) - Method in interface org.protelis.vm.ExecutionContext
Gets a value that survives across rounds.
getProperty(Node<Object>, Molecule, String) - Method in class org.protelis.test.infrastructure.TestIncarnation
 
getProtelisStacktrace() - Method in exception org.protelis.lang.interpreter.util.ProtelisRuntimeException
 
getReactionManager() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getResult(ExceptionObserver, String) - Static method in class org.protelis.test.InfrastructureTester.TestMatcher
 
getResultList(ExceptionObserver, String) - Static method in class org.protelis.test.InfrastructureTester.TestMatcher
 
getRight() - Method in class org.protelis.lang.datatype.Either
 
getSendCache() - Method in class org.protelis.test.infrastructure.CachingNetworkManager
External access to sending cache.
getStackCode() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
getStartLine() - Method in interface org.protelis.lang.loading.Metadata
 
getStatus() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getStep() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getStoredState() - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
getThenExpression() - Method in class org.protelis.lang.interpreter.impl.If
 
getTime() - Method in class it.unibo.alchemist.core.implementations.Engine
 
getType() - Method in class org.protelis.lang.datatype.JVMEntity
 
getUID() - Method in class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
 
getValue() - Method in class org.protelis.lang.datatype.JVMEntity
 
getVariable(Reference) - Method in interface org.protelis.vm.ExecutionContext
Look up the value of a variable from the local environment.
getVariable(Reference) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
getVariables() - Method in class it.unibo.alchemist.loader.YamlLoader
 
getWith(Map<String, Double>) - Method in class it.unibo.alchemist.loader.YamlLoader
 
getYieldExpression() - Method in class org.protelis.lang.interpreter.impl.ShareCall
 
GREATER - org.protelis.lang.interpreter.util.Op2
Greater-than comparison operation.
GREATER_EQUAL - org.protelis.lang.interpreter.util.Op2
Greater-than-or-equal comparison operation.

H

has(String) - Method in class org.protelis.test.infrastructure.ProtelisNode
 
has(String) - Method in interface org.protelis.vm.ExecutionEnvironment
 
has(String) - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
hashCode() - Method in class org.protelis.lang.datatype.Either
 
hashCode() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
hashCode() - Method in class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
 
hashCode() - Method in class org.protelis.lang.datatype.impl.AbstractField
hashCode() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
hashCode() - Method in class org.protelis.lang.datatype.Option
 
hashCode() - Method in class org.protelis.lang.interpreter.util.Reference
 
hashCode() - Method in class org.protelis.vm.impl.DefaultTimeEfficientCodePath
 
hashCode() - Method in class org.protelis.vm.impl.HashingCodePathFactory.HashingCodePath
 
HashingCodePath(byte[]) - Constructor for class org.protelis.vm.impl.HashingCodePathFactory.HashingCodePath
Builds a new HashingCodePathFactory.HashingCodePath based on the provided hash.
HashingCodePathFactory - Class in org.protelis.vm.impl
A hash-based CodePath factory.
HashingCodePathFactory(HashFunction) - Constructor for class org.protelis.vm.impl.HashingCodePathFactory
 
HashingCodePathFactory(HashingCodePathFactory.HasherSupplier) - Constructor for class org.protelis.vm.impl.HashingCodePathFactory
 
HashingCodePathFactory.HasherSupplier - Interface in org.protelis.vm.impl
Serializable supplier, because Java 8 lambdas are not.
HashingCodePathFactory.HashingCodePath - Class in org.protelis.vm.impl
Hash-based CodePath.
HashingFunnel - Interface in org.protelis.lang.interpreter.util
Serializable function that can return either an Integer or a byte[].
head() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
head() - Method in interface org.protelis.lang.datatype.Tuple
 
HOOD_ALL - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_ANY - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_CALL - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_LOCAL - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_MAX - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_MEAN - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_MIN - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_SUM - org.protelis.lang.interpreter.util.Bytecode
 
HOOD_UNION - org.protelis.lang.interpreter.util.Bytecode
 
HoodCall - Class in org.protelis.lang.interpreter.impl
Deprecated.
HoodCall(Metadata, ProtelisAST<Field<Object>>, HoodOp, boolean) - Constructor for class org.protelis.lang.interpreter.impl.HoodCall
Deprecated.
 
hoodFailureField(ExecutionContext) - Static method in class org.protelis.test.infrastructure.DummyContext
Test utility.
HoodOp - Enum in org.protelis.lang.interpreter.util
Deprecated.

I

If<T> - Class in org.protelis.lang.interpreter.impl
Branch, restricting domain of true and false branches into their own aligned subspaces.
If(Metadata, ProtelisAST<Boolean>, ProtelisAST<T>, ProtelisAST<T>) - Constructor for class org.protelis.lang.interpreter.impl.If
 
IF - org.protelis.lang.interpreter.util.Bytecode
 
IF_ELSE - org.protelis.lang.interpreter.util.Bytecode
 
IF_THEN - org.protelis.lang.interpreter.util.Bytecode
 
indexof(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
indexof(Object) - Method in interface org.protelis.lang.datatype.Tuple
Searches for an element in a tuple, returning its index if found.
InfrastructureTester - Class in org.protelis.test
Test protelis simulations.
InfrastructureTester.TestMatcher - Class in org.protelis.test
Matching results.
INIT - org.protelis.lang.interpreter.util.Bytecode
 
insert(int, Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
insert(int, Object) - Method in interface org.protelis.lang.datatype.Tuple
Add an element to an arbitrary location within a tuple, moving all elements after it down.
instance() - Method in class org.protelis.test.infrastructure.DummyContext
 
instance() - Method in class org.protelis.test.infrastructure.DummyDevice
 
instance() - Static method in class org.protelis.test.infrastructure.TestIncarnation
 
instance() - Method in class org.protelis.vm.impl.AbstractExecutionContext
Produce a child execution context, for encapsulated evaluation of sub-programs.
IntegerUID - Class in org.protelis.lang.datatype.impl
Simple integer UIDs.
IntegerUID(int) - Constructor for class org.protelis.lang.datatype.impl.IntegerUID
Create DeviceUID from an integer.
intersection(Tuple) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
intersection(Tuple) - Method in interface org.protelis.lang.datatype.Tuple
Set arithmetic: compute intersection of set of tuple elements with set of elements of another tuple.
intersection(Tuple, Tuple) - Static method in class org.protelis.lang.datatype.Tuples
Set arithmetic: compute intersection of set of tuple elements in t1 and t2.
Invoke - Class in org.protelis.lang.interpreter.impl
Call an external Java non-static method.
Invoke(ProtelisAST<?>, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.Invoke
Builds a new Invoke.APPLY.
Invoke(Metadata, String, ProtelisAST<?>, List<ProtelisAST<?>>) - Constructor for class org.protelis.lang.interpreter.impl.Invoke
 
invokeFieldable(ExecutionContext, Class<?>, String, Object, Object[]) - Static method in class org.protelis.lang.interpreter.util.ReflectionUtils
Invokes a method.
invokeFieldable(ExecutionContext, Method, Object, Object[]) - Static method in class org.protelis.lang.interpreter.util.ReflectionUtils
Invokes a method.
invokerShouldInitializeIt() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
isAbsent() - Method in class org.protelis.lang.datatype.Option
 
isEmpty() - Method in interface org.protelis.lang.datatype.Field
 
isEmpty() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
isEmpty() - Method in class org.protelis.lang.datatype.Option
 
isEmpty() - Method in interface org.protelis.lang.datatype.Tuple
 
isLeft() - Method in class org.protelis.lang.datatype.Either
 
isNullable() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
 
isNullable() - Method in class org.protelis.lang.interpreter.impl.If
 
isNullable() - Method in class org.protelis.lang.interpreter.impl.Invoke
 
isNullable() - Method in class org.protelis.lang.interpreter.impl.JvmConstant
 
isPresent() - Method in class org.protelis.lang.datatype.Option
 
isRight() - Method in class org.protelis.lang.datatype.Either
 
IT - Static variable in class org.protelis.lang.ProtelisLoadingUtilities
A reference to the 'it' variable to be used in lambdas.
it.unibo.alchemist.core.implementations - package it.unibo.alchemist.core.implementations
 
it.unibo.alchemist.loader - package it.unibo.alchemist.loader
 
iterable() - Method in interface org.protelis.lang.datatype.Field
 
iterable() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
iterable() - Method in class org.protelis.lang.datatype.impl.LazyField
 
iterator() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 

J

JAVA_NULL - Static variable in class org.protelis.lang.datatype.Option
Returns the Java null value.
Java8CompatibleFunnel - Class in org.protelis.lang.interpreter.util
Implementation of a Java8-compatible serializable hash function.
Java8CompatibleFunnel() - Constructor for class org.protelis.lang.interpreter.util.Java8CompatibleFunnel
 
JavaInteroperabilityUtils - Class in org.protelis.lang.interpreter.util
Collection of utilities that ease the interoperability with Java.
JvmConstant - Class in org.protelis.lang.interpreter.impl
Access a variable.
JvmConstant(Metadata, JVMEntity) - Constructor for class org.protelis.lang.interpreter.impl.JvmConstant
 
JVMEntity - Class in org.protelis.lang.datatype
A runtime Protelis view of a JvmFeature.
JVMEntity(Method) - Constructor for class org.protelis.lang.datatype.JVMEntity
 
JVMEntity(JvmFeature) - Constructor for class org.protelis.lang.datatype.JVMEntity
 

K

keys() - Method in interface org.protelis.lang.datatype.Field
 
keys() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
keys() - Method in class org.protelis.lang.datatype.impl.LazyField
 
keySet() - Method in class org.protelis.test.infrastructure.ProtelisNode
 
keySet() - Method in interface org.protelis.vm.ExecutionEnvironment
 
keySet() - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
keyStream() - Method in interface org.protelis.lang.datatype.Field
 
keyStream() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
keyStream() - Method in class org.protelis.lang.datatype.impl.LazyField
 

L

LazyField<T> - Class in org.protelis.lang.datatype.impl
Lazy implementation of a Field.
LazyField(Field<?>, Function<DeviceUID, T>) - Constructor for class org.protelis.lang.datatype.impl.LazyField
 
left(L) - Static method in class org.protelis.lang.datatype.Either
Factory method for a left Either.
loadState(ExecutionContext, Supplier<S>) - Method in class org.protelis.lang.interpreter.impl.AbstractPersistedTree
Retrieves the function state from last round, or produces a new state otherwise.
local(Field<T>) - Static method in class org.protelis.Builtins
Picks the local field value (same operation of the previously available "localHood" and "pickHood").
LOCAL - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Pick local value.
LocalizedDevice - Interface in org.protelis.vm
A device embedded in a space which allows coordinates.
LongUID - Class in org.protelis.lang.datatype.impl
Simple long UIDs.
LongUID(long) - Constructor for class org.protelis.lang.datatype.impl.LongUID
Create DeviceUID from a long.

M

main(String[]) - Static method in class org.protelis.test.InfrastructureTester
Run a test.
makeTestField(int) - Method in class org.protelis.test.infrastructure.DummyContext
Test utility.
makeTestField(ExecutionContext) - Static method in class org.protelis.test.infrastructure.DummyContext
Test utility.
makeTupleTestField(int) - Method in class org.protelis.test.infrastructure.DummyContext
Test utility.
map(Function<? super E, ? extends X>) - Method in class org.protelis.lang.datatype.Option
 
map(Function<Object, Object>) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
map(Function<Object, Object>) - Method in interface org.protelis.lang.datatype.Tuple
Maps a tuple to another same-length tuple by applying a function to each element.
map(Function<DeviceUID, R>) - Method in interface org.protelis.lang.datatype.Field
Map operation over this field, returning a new field whose values are provided by the mapper function.
map(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
map(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.Option
 
map(ExecutionContext, FunctionDefinition) - Method in interface org.protelis.lang.datatype.Tuple
Maps a tuple to another same-length tuple by applying a function to each element.
max(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
max(Object) - Method in interface org.protelis.lang.datatype.Tuple
 
MAX - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Maximum.
MAX - org.protelis.lang.interpreter.util.Op2
Maximum of two numbers or other Comparable objects.
MAXIMUM_PARSER_VERSION - Static variable in class org.protelis.Builtins
This variable is used by the interpreter for providing compatibility hints in the Eclipse plugin.
maybe(T) - Static method in class org.protelis.Builtins
Given a nullable reference, builds an Option.
MEAN - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Mean of values.
merge(Option<E>, BinaryOperator<E>) - Method in class org.protelis.lang.datatype.Option
If both options are present, the combiner function is executed on the Option contents.
mergeAfter(Tuple) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
mergeAfter(Tuple) - Method in interface org.protelis.lang.datatype.Tuple
Append elements of another tuple to the end of this tuple.
Metadata - Interface in org.protelis.lang.loading
This class represents data about each AST node about the original code that generated it.
METADATA - Static variable in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
A fake Metadata object to be used when no data or original source code is available.
METHOD_CALL - org.protelis.lang.interpreter.util.Bytecode
 
min(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
min(Object) - Method in interface org.protelis.lang.datatype.Tuple
 
min(T, T) - Static method in class org.protelis.Builtins
Compares two arbitrary Comparables and returns the smaller.
MIN - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Minimum.
MIN - org.protelis.lang.interpreter.util.Op2
Minimum of two numbers or other Comparable objects.
MINIMUM_PARSER_VERSION - Static variable in class org.protelis.Builtins
This variable is used by the interpreter for providing compatibility hints in the Eclipse plugin.
MINUS - org.protelis.lang.interpreter.util.Op1
Sign inversion.
MINUS - org.protelis.lang.interpreter.util.Op2
Arithmetic subtraction operation.
MODULUS - org.protelis.lang.interpreter.util.Op2
Modulus operation.
multiRunTest(String) - Static method in class org.protelis.test.InfrastructureTester
Test the given file.
MUX - org.protelis.lang.interpreter.util.Op3
Functional mux.

N

NBR - org.protelis.lang.interpreter.util.Bytecode
 
NBRCall<T> - Class in org.protelis.lang.interpreter.impl
Implementation of 'nbr' operator.
NBRCall(Metadata, ProtelisAST<T>) - Constructor for class org.protelis.lang.interpreter.impl.NBRCall
 
nbrDelay() - Method in class org.protelis.test.infrastructure.DummyDevice
 
nbrDelay() - Method in interface org.protelis.vm.TimeAwareDevice
Time forward view: expected time from the device computation to neighbor's next computation incorporating that information.
nbrLag() - Method in class org.protelis.test.infrastructure.DummyDevice
 
nbrLag() - Method in interface org.protelis.vm.TimeAwareDevice
Time backward view: how long ago information from neighbors was received.
nbrRange() - Method in class org.protelis.test.infrastructure.DummyDevice
 
nbrRange() - Method in interface org.protelis.vm.SpatiallyEmbeddedDevice
Get the distance between the current device and its neighbors.
nbrVector() - Method in class org.protelis.test.infrastructure.DummyDevice
 
nbrVector() - Method in interface org.protelis.vm.LocalizedDevice
TODO: define vector.
neighborAdded(Environment<T>, Node<T>, Node<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
neighborRemoved(Environment<T>, Node<T>, Node<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
NetworkManager - Interface in org.protelis.vm
Abstraction of networking used by the virtual machine: at each execution round, the VM needs to be able to access the most recent state received from neighbors and to be able to update the state that it is exporting to neighbors.
newCallStackFrame(byte...) - Method in interface org.protelis.vm.ExecutionContext
 
newCallStackFrame(byte...) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
newCallStackFrame(int...) - Method in interface org.protelis.vm.ExecutionContext
 
newCallStackFrame(int...) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
nextRandomDouble() - Method in class org.protelis.test.infrastructure.DummyContext
 
nextRandomDouble() - Method in class org.protelis.test.infrastructure.DummyDevice
Note: this should be going away in the future, to be replaced by standard Java random.
nextRandomDouble() - Method in interface org.protelis.vm.ExecutionContext
Obtain a system-independent (pseudo)random number.
nodeAdded(Environment<T>, Node<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
This method provide a facility for adding all the reactions of a node to the current simulation, creating also the dependencies.
nodeMoved(Environment<T>, Node<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
nodeRemoved(Environment<T>, Node<T>, Neighborhood<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
This method provide a facility for removing all the reactions of a node from the current simulation, along with their dependencies.
none(Field<Boolean>) - Static method in class org.protelis.Builtins
Returns true if all the elements of the field are false, including the local value.
noneButSelf(Field<Boolean>) - Static method in class org.protelis.Builtins
Returns true if all the elements of the field are false, not considering the local value.
NOT - org.protelis.lang.interpreter.util.Op1
Not.
NumericConstant - Class in org.protelis.lang.interpreter.impl
A numerical constant.
NumericConstant(Metadata, double) - Constructor for class org.protelis.lang.interpreter.impl.NumericConstant
 
NumericConstant(Metadata, String) - Constructor for class org.protelis.lang.interpreter.impl.NumericConstant
 

O

of(E) - Static method in class org.protelis.lang.datatype.Option
Returns an Option describing the specified value, if non-null, otherwise returns an empty Option.
ofNullable(E) - Static method in class org.protelis.lang.datatype.Option
Returns an Option describing the specified value, if non-null, otherwise returns an empty Option.
Op1 - Enum in org.protelis.lang.interpreter.util
Collection of functions and helper methods for unary operators.
Op2 - Enum in org.protelis.lang.interpreter.util
Infix operator that takes two inputs, such as addition, division, or "greater than" comparison.
Op3 - Enum in org.protelis.lang.interpreter.util
Collection of functions and helper methods for ternary syntactic operators.
Option<E> - Class in org.protelis.lang.datatype
An immutable object that may contain a non-null reference to another object.
optionally(T) - Static method in class org.protelis.Builtins
Produces an Option value.
OpUtils - Class in org.protelis.lang.interpreter.util
Utility class that OpN classes use for reporting certain failure patterns.
or(Optional<? extends E>) - Method in class org.protelis.lang.datatype.Option
Return the value if present, otherwise return other.
or(Optional<? extends E>) - Method in class org.protelis.lang.datatype.Option
Return the value if present, otherwise return other.
or(Option<? extends E>) - Method in class org.protelis.lang.datatype.Option
Return the value if present, otherwise return other.
OR - org.protelis.lang.interpreter.util.Op2
Logical OR operation.
orElse(E) - Method in class org.protelis.lang.datatype.Option
Return the value if present, otherwise return other.
orElseGet(Supplier<? extends E>) - Method in class org.protelis.lang.datatype.Option
Return the value if present, otherwise invoke other and return the result of that invocation.
orElseGet(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.Option
Return the value if present, otherwise invoke other and return the result of that invocation.
orElseThrow(Supplier<? extends X>) - Method in class org.protelis.lang.datatype.Option
Return the contained value, if present, otherwise throw an exception to be created by the provided supplier.
org.protelis - package org.protelis
 
org.protelis.lang - package org.protelis.lang
 
org.protelis.lang.datatype - package org.protelis.lang.datatype
 
org.protelis.lang.datatype.impl - package org.protelis.lang.datatype.impl
 
org.protelis.lang.interpreter - package org.protelis.lang.interpreter
 
org.protelis.lang.interpreter.impl - package org.protelis.lang.interpreter.impl
 
org.protelis.lang.interpreter.util - package org.protelis.lang.interpreter.util
 
org.protelis.lang.loading - package org.protelis.lang.loading
 
org.protelis.test - package org.protelis.test
 
org.protelis.test.infrastructure - package org.protelis.test.infrastructure
 
org.protelis.test.matcher - package org.protelis.test.matcher
 
org.protelis.test.observer - package org.protelis.test.observer
 
org.protelis.vm - package org.protelis.vm
 
org.protelis.vm.impl - package org.protelis.vm.impl
 

P

pairOperation(Tuple, Tuple, BinaryOperator<Object>) - Static method in class org.protelis.lang.datatype.Tuples
Apply fun to pairs of elements from t1 and t2.
parse(String) - Static method in class org.protelis.lang.ProtelisLoader
 
parse(Resource) - Static method in class org.protelis.lang.ProtelisLoader
 
parseAnonymousModule(String) - Static method in class org.protelis.lang.ProtelisLoader
 
parseURI(String) - Static method in class org.protelis.lang.ProtelisLoader
 
pause() - Method in class it.unibo.alchemist.core.implementations.Engine.StateCommand
Sets the desired status to PAUSED.
PLUS - org.protelis.lang.interpreter.util.Op2
Arithmetic addition operation.
POWER - org.protelis.lang.interpreter.util.Op2
Exponent operation.
prepend(Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
prepend(Object) - Method in interface org.protelis.lang.datatype.Tuple
Add an element to the start of a tuple.
ProgramTester - Class in org.protelis.test
Test a protelis program.
projectOn(Field<?>) - Method in interface org.protelis.lang.datatype.Field
Project this field over a restricted domain.
ProtelisAST<T> - Interface in org.protelis.lang.interpreter
Data structure representing the field calculus semantics of annotating expressions with their evaluated values.
ProtelisLoader - Class in org.protelis.lang
Main entry-point class for loading/parsing Protelis programs.
ProtelisLoadingUtilities - Class in org.protelis.lang
Static utilities for parsing Protelis.
ProtelisNode - Class in org.protelis.test.infrastructure
 
ProtelisNode(Environment<?>) - Constructor for class org.protelis.test.infrastructure.ProtelisNode
Builds a new ProtelisNode.
ProtelisProgram - Interface in org.protelis.vm
Executable representation of a Protelis program.
ProtelisRuntimeException - Exception in org.protelis.lang.interpreter.util
This class represents a runtime error in the Protelis interpreter.
ProtelisRuntimeException(Throwable, ProtelisAST<?>) - Constructor for exception org.protelis.lang.interpreter.util.ProtelisRuntimeException
Builds a new ProtelisRuntimeException, happening due to the specified Java exception, into the origin node of the Protelis AST.
ProtelisVM - Class in org.protelis.vm
A virtual machine for executing a Protelis program on a particular device (context).
ProtelisVM(ProtelisProgram, ExecutionContext) - Constructor for class org.protelis.vm.ProtelisVM
Create a virtual machine for executing a Protelis program in a particular context.
put(String, Object) - Method in class org.protelis.test.infrastructure.ProtelisNode
 
put(String, Object) - Method in interface org.protelis.vm.ExecutionEnvironment
 
put(String, Object) - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
putMultipleVariables(Map<Reference, ?>) - Method in interface org.protelis.vm.ExecutionContext
Pushes multiple variables.
putMultipleVariables(Map<Reference, ?>) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
putVariable(Reference, Object) - Method in interface org.protelis.vm.ExecutionContext
Puts a variable value, overwriting the previous one, if any.
putVariable(Reference, Object) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 

Q

qualifiedNameFor(FunctionDef) - Static method in class org.protelis.lang.ProtelisLoadingUtilities
 
qualifiedNameFor(Lambda) - Static method in class org.protelis.lang.ProtelisLoadingUtilities
 
qualifiedNameFor(ProtelisModule) - Static method in class org.protelis.lang.ProtelisLoadingUtilities
 

R

receiveFromNeighbor(DeviceUID, Map<CodePath, Object>) - Method in class org.protelis.test.infrastructure.CachingNetworkManager
External access to put messages into receive cache.
reduce(Object, BinaryOperator<Object>) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
reduce(Object, BinaryOperator<Object>) - Method in interface org.protelis.lang.datatype.Tuple
Performs a reduction operation, that maps a tuple to a single value.
reduce(BinaryOperator<Map.Entry<DeviceUID, T>>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over the field.
reduce(Function<Map.Entry<DeviceUID, T>, R>, BinaryOperator<R>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over the field.
reduce(ExecutionContext, Object, FunctionDefinition) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
reduce(ExecutionContext, Object, FunctionDefinition) - Method in interface org.protelis.lang.datatype.Tuple
Performs a reduction operation, that maps a tuple to a single value.
reduceHood(ExecutionContext, Field<T>, FunctionDefinition) - Static method in class org.protelis.Builtins
Reduces a field, excluding the local value.
reduceKeys(BinaryOperator<DeviceUID>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over the field's keys.
reduceMax(Field<T>) - Static method in class org.protelis.Builtins
Reduces a field, excluding the local value, by picking the maximum value.
reduceMean(Field<? extends Number>) - Static method in class org.protelis.Builtins
Reduces a field, excluding the local value, by computing the arithmetic mean of the values.
reduceMin(Field<T>) - Static method in class org.protelis.Builtins
Reduces a field by picking the minimum of its values, excluding the local value.
reduceSum(Field<T>) - Static method in class org.protelis.Builtins
Reduces a field, excluding the local value, by computing the sum of the values.
reduceUnion(Field<T>) - Static method in class org.protelis.Builtins
Reduces a field, excluding the local value, by computing the union of the values.
reduceValues(BinaryOperator<T>) - Method in interface org.protelis.lang.datatype.Field
Reduction operation over the field's values.
Reference - Class in org.protelis.lang.interpreter.util
Implements a Serializable reference to an Object.
Reference(Object) - Constructor for class org.protelis.lang.interpreter.util.Reference
 
referenceFor(Object) - Static method in class org.protelis.lang.ProtelisLoadingUtilities
 
referenceListFor(List<?>) - Static method in class org.protelis.lang.ProtelisLoadingUtilities
 
ReflectionUtils - Class in org.protelis.lang.interpreter.util
Utilities that make easier to cope with Java Reflection.
remove(String) - Method in class org.protelis.test.infrastructure.ProtelisNode
 
remove(String) - Method in interface org.protelis.vm.ExecutionEnvironment
 
remove(String) - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
removeNeighbor(DeviceUID) - Method in class org.protelis.test.infrastructure.CachingNetworkManager
External access to note when a device is no longer a neighbor, wiping cache.
removeOutputMonitor(OutputMonitor<T>) - Method in class it.unibo.alchemist.core.implementations.Engine
 
removeReaction(Environment<T>, Reaction<T>) - Static method in class it.unibo.alchemist.core.implementations.Engine
 
REP - org.protelis.lang.interpreter.util.Bytecode
 
resourceFromString(String) - Static method in class org.protelis.lang.ProtelisLoader
 
restrictDomain(Field<?>) - Method in interface org.protelis.vm.ExecutionContext
Give a field, returns a new ExecutionContext whose domain is the same of the field one.
restrictDomain(Field<?>) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
RESULT - Static variable in class org.protelis.test.infrastructure.RunProtelisProgram
RESULT.
returnFromCallFrame() - Method in interface org.protelis.vm.ExecutionContext
returns from the last frame.
returnFromCallFrame() - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
right(R) - Static method in class org.protelis.lang.datatype.Either
Factory method for a right Either.
run() - Method in class it.unibo.alchemist.core.implementations.Engine
 
run() - Method in class it.unibo.alchemist.core.implementations.Engine.StateCommand
Sets the desired status to RUNNING.
run(Object) - Method in enum org.protelis.lang.interpreter.util.Op1
 
run(Object, Object) - Method in enum org.protelis.lang.interpreter.util.Op2
Compute the value of applying the two-argument operator to inputs a and b.
run(Object, Object, Object) - Method in enum org.protelis.lang.interpreter.util.Op3
 
run(Field<Object>, boolean) - Method in enum org.protelis.lang.interpreter.util.HoodOp
Deprecated.
 
runCycle() - Method in class org.protelis.vm.ProtelisVM
Run one execution cycle of the VM, in which the computation is run atomically against the most recent neighbor and environment information, producing a new state to be committed to the environment and sent to neighbors.
runExpectingErrors(String, Class<? extends Throwable>, boolean, String...) - Static method in class org.protelis.test.ProgramTester
Tests a program expecting an error, and checks its message contents.
runExpectingErrors(String, Class<? extends Throwable>, String...) - Static method in class org.protelis.test.ProgramTester
Tests a program expecting an error, and checks its message contents.
runExpectingErrors(String, Class<E>, Consumer<E>) - Static method in class org.protelis.test.ProgramTester
Tests a program expecting an error, and checks its message contents.
runFile(String) - Static method in class org.protelis.test.ProgramTester
 
runFile(String, int) - Static method in class org.protelis.test.ProgramTester
 
runFile(String, int, Object) - Static method in class org.protelis.test.ProgramTester
 
runFileWithExplicitResult(String, Object) - Static method in class org.protelis.test.ProgramTester
 
runFileWithMultipleRuns(String) - Static method in class org.protelis.test.ProgramTester
 
runFileWithMultipleRuns(String, int, int) - Static method in class org.protelis.test.ProgramTester
 
runFileWithMultipleRuns(String, IntStream) - Static method in class org.protelis.test.ProgramTester
 
runInNewStackFrame(int, Function<ExecutionContext, T>) - Method in interface org.protelis.vm.ExecutionContext
 
runInNewStackFrame(int, Function<ExecutionContext, T>) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
runMethodWithProtelisArguments(ExecutionContext, ProtelisAST<?>, String, ProtelisAST<?>...) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Executes a Java method on a reiceiver Java object computed by Protelis using Protelis-produced arguments.
runProgram(String, int) - Static method in class org.protelis.test.ProgramTester
 
runProtelisFunction(ExecutionContext, ProtelisAST<FunctionDefinition>, List<ProtelisAST<?>>) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Runs a Protelis function from Java, provided context and arguments.
runProtelisFunctionWithJavaArguments(ExecutionContext, FunctionDefinition, List<?>) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Runs a Protelis function from Java using Java-produced arguments, provided a context.
runProtelisFunctionWithJavaArguments(ExecutionContext, ProtelisAST<FunctionDefinition>, Object...) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Runs a Protelis function from Java using Java-produced arguments, provided a context.
RunProtelisProgram - Class in org.protelis.test.infrastructure
 
RunProtelisProgram(Environment<Object>, ProtelisNode, Reaction<Object>, RandomGenerator, String) - Constructor for class org.protelis.test.infrastructure.RunProtelisProgram
 
runStaticMethodWithProtelisArguments(ExecutionContext, Method, ProtelisAST<?>...) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Executes a static Java method using Protelis-produced arguments.
runTest(String) - Static method in class org.protelis.test.InfrastructureTester
Test the given file.
runTest(String, int, int) - Static method in class org.protelis.test.InfrastructureTester
Test the given file.
runTest(String, int, int, Object) - Static method in class org.protelis.test.InfrastructureTester
Test a given property.
runTest(String, Object) - Static method in class org.protelis.test.InfrastructureTester
Test a given property.

S

saveState(ExecutionContext, S) - Method in class org.protelis.lang.interpreter.impl.AbstractPersistedTree
Stores the function state for the next round.
Self - Class in org.protelis.lang.interpreter.impl
Access to the evaluation context, which is used for interfacing with sensors, actuators, and the rest of the external non-static programmatic environment outside of Protelis.
Self(Metadata) - Constructor for class org.protelis.lang.interpreter.impl.Self
 
SELF - org.protelis.lang.interpreter.util.Bytecode
 
set(int, Object) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
set(int, Object) - Method in interface org.protelis.lang.datatype.Tuple
Replace an element in a tuple.
setGloballyAvailableReferences(Map<Reference, ?>) - Method in interface org.protelis.vm.ExecutionContext
Used internally to support first-class functions by make the functions of a program accessible for reflection at runtime.
setGloballyAvailableReferences(Map<Reference, ?>) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
setNetworkManger(NetworkManager) - Method in class org.protelis.test.infrastructure.ProtelisNode
 
setPersistent(Object) - Method in interface org.protelis.vm.ExecutionContext
Stores a value to be used in future rounds via getPersistent.
setPersistent(Object) - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
setup() - Method in class org.protelis.test.infrastructure.ProtelisNode
 
setup() - Method in interface org.protelis.vm.ExecutionContext
Called just before the VM is executed, to enable and preparations needed in the environment.
setup() - Method in interface org.protelis.vm.ExecutionEnvironment
Called just before the VM is executed, to enable and preparations needed in the environment.
setup() - Method in class org.protelis.vm.impl.AbstractExecutionContext
 
setup() - Method in class org.protelis.vm.impl.SimpleExecutionEnvironment
 
SHARE - org.protelis.lang.interpreter.util.Bytecode
 
SHARE_BODY - org.protelis.lang.interpreter.util.Bytecode
 
SHARE_INIT - org.protelis.lang.interpreter.util.Bytecode
 
SHARE_YIELD - org.protelis.lang.interpreter.util.Bytecode
 
ShareCall<S,​T> - Class in org.protelis.lang.interpreter.impl
Share construct.
ShareCall(Metadata, Optional<Reference>, Optional<Reference>, ProtelisAST<S>, ProtelisAST<S>, Optional<ProtelisAST<T>>) - Constructor for class org.protelis.lang.interpreter.impl.ShareCall
 
ShareCall(Metadata, Optional<Reference>, Optional<Reference>, ProtelisAST<S>, ProtelisAST<S>, Optional<ProtelisAST<T>>) - Constructor for class org.protelis.lang.interpreter.impl.ShareCall
Convenience constructor with Optional.
shareState(Map<CodePath, Object>) - Method in class org.protelis.test.infrastructure.CachingNetworkManager
Called by ProtelisVM during execution to send its current shared state to neighbors.
shareState(Map<CodePath, Object>) - Method in class org.protelis.vm.impl.SimpleNetworkManager
 
shareState(Map<CodePath, Object>) - Method in interface org.protelis.vm.NetworkManager
Called by ProtelisVM during execution to send its current shared state to neighbors.
SimpleExceptionObserver - Class in org.protelis.test.observer
Simple exception observer.
SimpleExceptionObserver() - Constructor for class org.protelis.test.observer.SimpleExceptionObserver
 
SimpleExecutionEnvironment - Class in org.protelis.vm.impl
Simple implementation of ExecutionEnvironment.
SimpleExecutionEnvironment() - Constructor for class org.protelis.vm.impl.SimpleExecutionEnvironment
 
SimpleNetworkManager - Class in org.protelis.vm.impl
Stub network manager for testing, in which there are no neighbors and no messages are ever sent.
SimpleNetworkManager() - Constructor for class org.protelis.vm.impl.SimpleNetworkManager
 
SimpleProgramImpl - Class in org.protelis.vm.impl
Base implementation of ProtelisProgram.
SimpleProgramImpl(String, ProtelisAST<?>) - Constructor for class org.protelis.vm.impl.SimpleProgramImpl
 
SimpleProgramImpl(ProtelisModule, ProtelisAST<?>) - Constructor for class org.protelis.vm.impl.SimpleProgramImpl
 
SIMULATION_STEPS - Static variable in class org.protelis.test.InfrastructureTester
Default runs.
size() - Method in interface org.protelis.lang.datatype.Field
The number of neighbors in this field.
size() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
size() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
size() - Method in class org.protelis.lang.datatype.impl.LazyField
 
size() - Method in interface org.protelis.lang.datatype.Tuple
 
SMALLER - org.protelis.lang.interpreter.util.Op2
Less-than comparison operation.
SMALLER_EQUAL - org.protelis.lang.interpreter.util.Op2
Less-than-or-equal comparison operation.
sort() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
sort() - Method in interface org.protelis.lang.datatype.Tuple
 
SpatiallyEmbeddedDevice<D extends java.lang.Number> - Interface in org.protelis.vm
A device embedded in space.
STABILITY_STEPS - Static variable in class org.protelis.test.InfrastructureTester
Check function stability for this number of steps.
StateCommand() - Constructor for class it.unibo.alchemist.core.implementations.Engine.StateCommand
 
stop() - Method in class it.unibo.alchemist.core.implementations.Engine.StateCommand
Sets the desired status to {#@link Status#STOPPED}.
stream() - Method in interface org.protelis.lang.datatype.Field
 
stream() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
stream() - Method in class org.protelis.lang.datatype.impl.LazyField
 
stringFor(ProtelisAST<?>) - Static method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
A String representation of an ProtelisAST.
StringUID - Class in org.protelis.lang.datatype.impl
Simple string UIDs.
StringUID(String) - Constructor for class org.protelis.lang.datatype.impl.StringUID
Create DeviceUID from a string.
subtract(Tuple) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
subtract(Tuple) - Method in interface org.protelis.lang.datatype.Tuple
Set arithmetic: compute which elements in this tuple are not in another tuple.
subtract(Tuple, Tuple) - Static method in class org.protelis.lang.datatype.Tuples
Set arithmetic: compute subtraction of set of tuple elements in t2 from elements in t1.
subTuple(int, int) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
subTuple(int, int) - Method in interface org.protelis.lang.datatype.Tuple
Produces a new Tuple containing the elements between the start and end indices.
subTupleEnd(int) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
subTupleEnd(int) - Method in interface org.protelis.lang.datatype.Tuple
Produces a new Tuple containing all elements from i onward.
subTupleStart(int) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
subTupleStart(int) - Method in interface org.protelis.lang.datatype.Tuple
Produces a new Tuple containing the first i elements.
SUM - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Sum of values.

T

tail() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
tail() - Method in interface org.protelis.lang.datatype.Tuple
 
TERNARY_MUX - org.protelis.lang.interpreter.util.Bytecode
 
TernaryOp - Class in org.protelis.lang.interpreter.impl
Three-argument syntactic operator such as multiplexing (mux).
TernaryOp(Metadata, String, ProtelisAST<?>, ProtelisAST<?>, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.TernaryOp
 
TestCount - Class in org.protelis.test.matcher
Count the occurences of a given value.
TestCount(Object) - Constructor for class org.protelis.test.matcher.TestCount
 
TestEqual - Class in org.protelis.test.matcher
Check if the simulation and expected results match.
TestEqual(ExceptionObserver) - Constructor for class org.protelis.test.matcher.TestEqual
 
TestIncarnation - Class in org.protelis.test.infrastructure
 
TestIncarnation() - Constructor for class org.protelis.test.infrastructure.TestIncarnation
 
TimeAwareDevice<D extends java.lang.Number> - Interface in org.protelis.vm
A time-aware device.
TIMES - org.protelis.lang.interpreter.util.Op2
Arithmetic multiplication operation.
toArray() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
toArray() - Method in interface org.protelis.lang.datatype.Tuple
 
toBinaryOperator(ExecutionContext, FunctionDefinition) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Converts a protelis FunctionDefinition to a Java BinaryOperator.
toFunction(ExecutionContext, FunctionDefinition) - Static method in class org.protelis.lang.interpreter.util.JavaInteroperabilityUtils
Converts a protelis FunctionDefinition to a Java Function.
toGuava() - Method in class org.protelis.lang.datatype.Option
 
toJavaUtil() - Method in class org.protelis.lang.datatype.Option
 
toMap() - Method in interface org.protelis.lang.datatype.Field
 
toMap() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
toString() - Method in class it.unibo.alchemist.core.implementations.Engine
 
toString() - Method in class org.protelis.lang.datatype.Either
 
toString() - Method in class org.protelis.lang.datatype.FunctionDefinition
 
toString() - Method in class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
 
toString() - Method in class org.protelis.lang.datatype.impl.AbstractField
toString() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
toString() - Method in class org.protelis.lang.datatype.JVMEntity
 
toString() - Method in class org.protelis.lang.datatype.Option
 
toString() - Method in class org.protelis.lang.interpreter.impl.AbstractPersistedTree
toString() - Method in class org.protelis.lang.interpreter.impl.AbstractProtelisAST
toString() - Method in class org.protelis.lang.interpreter.impl.AlignedMap
 
toString() - Method in class org.protelis.lang.interpreter.impl.All
 
toString() - Method in class org.protelis.lang.interpreter.impl.AssignmentOp
toString() - Method in class org.protelis.lang.interpreter.impl.BinaryOp
 
toString() - Method in class org.protelis.lang.interpreter.impl.ConditionalSideEffect
toString() - Method in class org.protelis.lang.interpreter.impl.Constant
toString() - Method in class org.protelis.lang.interpreter.impl.CreateTuple
toString() - Method in class org.protelis.lang.interpreter.impl.Env
toString() - Method in class org.protelis.lang.interpreter.impl.Eval
 
toString() - Method in class org.protelis.lang.interpreter.impl.If
toString() - Method in class org.protelis.lang.interpreter.impl.Invoke
toString() - Method in class org.protelis.lang.interpreter.impl.JvmConstant
 
toString() - Method in class org.protelis.lang.interpreter.impl.Self
 
toString() - Method in class org.protelis.lang.interpreter.impl.ShareCall
 
toString() - Method in class org.protelis.lang.interpreter.impl.Variable
 
toString() - Method in enum org.protelis.lang.interpreter.util.Op1
 
toString() - Method in enum org.protelis.lang.interpreter.util.Op2
 
toString() - Method in enum org.protelis.lang.interpreter.util.Op3
 
toString() - Method in class org.protelis.lang.interpreter.util.Reference
 
toString() - Method in class org.protelis.test.infrastructure.DummyContext
 
toString() - Method in class org.protelis.test.infrastructure.DummyDevice
 
toString() - Method in class org.protelis.test.infrastructure.ProtelisNode
 
toString() - Method in class org.protelis.test.infrastructure.TestIncarnation
 
toString() - Method in class org.protelis.vm.impl.DefaultTimeEfficientCodePath
 
toString() - Method in class org.protelis.vm.impl.HashingCodePathFactory.HashingCodePath
 
toString() - Method in class org.protelis.vm.impl.SimpleProgramImpl
 
transform(Function<? super E, ? extends X>) - Method in class org.protelis.lang.datatype.Option
 
transform(ExecutionContext, FunctionDefinition) - Method in class org.protelis.lang.datatype.Option
 
TriFunction<A,​B,​C,​R> - Interface in org.protelis.lang.interpreter.util
Represents a function that accepts three arguments and produces a result.
Tuple - Interface in org.protelis.lang.datatype
Implementation of mathematical tuples as indexed objects T = [element0, element1, element2 ...] .
Tuples - Class in org.protelis.lang.datatype
Utility class for Tuple.

U

UNARY_MINUS - org.protelis.lang.interpreter.util.Bytecode
 
UNARY_NOT - org.protelis.lang.interpreter.util.Bytecode
 
UnaryOp - Class in org.protelis.lang.interpreter.impl
Unary (prefix) operator, such as negation.
UnaryOp(Metadata, String, ProtelisAST<?>) - Constructor for class org.protelis.lang.interpreter.impl.UnaryOp
 
union(Tuple) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
union(Tuple) - Method in interface org.protelis.lang.datatype.Tuple
Set arithmetic: compute union of set of tuple elements with set of elements of another tuple.
union(Tuple, Tuple) - Static method in class org.protelis.lang.datatype.Tuples
Set arithmetic: compute union of set of tuple elements in t1 and t2.
UNION - org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Union of values.
Unit - Enum in org.protelis.lang.datatype
Special type holding a single possible value.
UNIT - org.protelis.lang.datatype.Unit
Unit type of Protelis.
unsupported(String, Object...) - Static method in class org.protelis.lang.interpreter.util.OpUtils
This method builds a meaningful exception and throws it immediately.
unwrap(int) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
unwrap(int) - Method in interface org.protelis.lang.datatype.Tuple
For all elements that are tuples, substitute the ith sub-element.

V

valueOf(String) - Static method in enum org.protelis.lang.datatype.Unit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.protelis.lang.interpreter.util.Bytecode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.protelis.lang.interpreter.util.Op1
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.protelis.lang.interpreter.util.Op2
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.protelis.lang.interpreter.util.Op3
Returns the enum constant of this type with the specified name.
values() - Method in interface org.protelis.lang.datatype.Field
 
values() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
values() - Method in class org.protelis.lang.datatype.impl.LazyField
 
values() - Static method in enum org.protelis.lang.datatype.Unit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.protelis.lang.interpreter.util.Bytecode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.protelis.lang.interpreter.util.HoodOp
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.protelis.lang.interpreter.util.Op1
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.protelis.lang.interpreter.util.Op2
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.protelis.lang.interpreter.util.Op3
Returns an array containing the constants of this enum type, in the order they are declared.
valueStream() - Method in interface org.protelis.lang.datatype.Field
 
valueStream() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
 
valueStream() - Method in class org.protelis.lang.datatype.impl.LazyField
 
Variable - Class in org.protelis.lang.interpreter.impl
Access a variable.
Variable(Metadata, Reference) - Constructor for class org.protelis.lang.interpreter.impl.Variable
 
VARIABLE_ACCESS - org.protelis.lang.interpreter.util.Bytecode
 

W

waitFor(Status, long, TimeUnit) - Method in class it.unibo.alchemist.core.implementations.Engine
 
WithBytecode - Interface in org.protelis.lang.interpreter.util
Element with an associated bytecode.

Y

YamlLoader - Class in it.unibo.alchemist.loader
Loads a properly formatted YAML file and provides method for instancing a batch of scenarios.
YamlLoader(InputStream) - Constructor for class it.unibo.alchemist.loader.YamlLoader
 
YamlLoader(Reader) - Constructor for class it.unibo.alchemist.loader.YamlLoader
 
YamlLoader(String) - Constructor for class it.unibo.alchemist.loader.YamlLoader
 

Z

zip(Tuple) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
 
zip(Tuple) - Method in interface org.protelis.lang.datatype.Tuple
Zips two tuples together, creating a Tuple of 2-ples.
A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes All Packages