- pairOperation(Tuple, Tuple, BinaryOperator<Object>) - Static method in class org.protelis.lang.datatype.Tuples
-
Apply fun to pairs of elements from t1 and t2.
- parallelForEach(Consumer<? super AnnotatedTree<?>>) - Method in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
Facility to run lambdas across all the branches in a PARALELL fashion.
- parallelForEachWithIndex(BiConsumer<Integer, ? super AnnotatedTree<?>>) - Method in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
Facility to run lambdas across all the branches in a PARALELL fashion.
- PARAMS - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- 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
-
- path - Variable in class org.protelis.vm.util.CodePath
-
This sequence of longs will be filled with the bytes representing the
execution trace.
- PlaceHolder(String) - Constructor for class it.unibo.alchemist.loader.YamlLoader.PlaceHolder
-
- plus(Object, Object) - Static method in enum org.protelis.lang.util.Op2
-
- pop() - Method in interface org.protelis.vm.util.Stack
-
Exit the current most-nested lexical scope.
- pop() - Method in class org.protelis.vm.util.StackImpl
-
- populateActions(Map<String, Double>, Map<String, Object>, RandomGenerator, <any>, <any>, PositionMaker, <any>, <any>, <any>) - Method in class it.unibo.alchemist.loader.YamlLoader
-
- populateConditions(Map<String, Double>, Map<String, Object>, RandomGenerator, <any>, <any>, PositionMaker, <any>, <any>, <any>) - Method in class it.unibo.alchemist.loader.YamlLoader
-
- posClass - Variable in class it.unibo.alchemist.loader.YamlLoader
-
- POSITIONS - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- POSITIONS_PACKAGE_ROOT - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- pow(Object, Object) - Static method in enum org.protelis.lang.util.Op2
-
- 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.
- previousRoundTime - Variable in class org.protelis.vm.impl.AbstractExecutionContext
-
- printStackTrace(PrintStream) - Method in exception org.protelis.lang.ProtelisRuntimeException
-
- prog - Variable in class org.protelis.vm.impl.SimpleProgramImpl
-
- prog - Variable in class org.protelis.vm.ProtelisVM
-
- program - Variable in class org.protelis.test.infrastructure.RunProtelisProgram
-
- PROGRAMS - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- ProgramState(Map<Reference, FunctionDefinition>) - Constructor for class org.protelis.lang.ProtelisLoader.ProgramState
-
- ProgramTester - Class in org.protelis.test
-
Test a protelis program.
- ProgramTester() - Constructor for class org.protelis.test.ProgramTester
-
- projectAndEval(ExecutionContext) - Method in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
Runs eval() sequentially on every branch, creating a new stack frame for
each one.
- PROPERTY - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- PROTELIS_FILE_EXTENSION - Static variable in class org.protelis.lang.ProtelisLoader
-
- ProtelisLoader - Class in org.protelis.lang
-
Main entry-point class for loading/parsing Protelis programs.
- ProtelisLoader() - Constructor for class org.protelis.lang.ProtelisLoader
-
- ProtelisLoader.Dispatch - Enum in org.protelis.lang
-
- ProtelisLoader.ProgramState - Class in org.protelis.lang
-
- ProtelisNode - Class in org.protelis.test.infrastructure
-
- ProtelisNode(<any>) - Constructor for class org.protelis.test.infrastructure.ProtelisNode
-
- ProtelisProgram - Interface in org.protelis.vm
-
Executable representation of a Protelis program.
- ProtelisRuntimeException - Exception in org.protelis.lang
-
This class represents a runtime error in the Protelis interpreter.
- ProtelisRuntimeException(Throwable, AnnotatedTree<?>) - Constructor for exception org.protelis.lang.ProtelisRuntimeException
-
Builds a new
ProtelisRuntimeException
, happening due to the specified
Java exception, into the origin node of the Protelis AST.
- protelisStackTrace - Variable in exception org.protelis.lang.ProtelisRuntimeException
-
- 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.
- push() - Method in interface org.protelis.vm.util.Stack
-
Enter a new nested lexical scope.
- push() - Method in class org.protelis.vm.util.StackImpl
-
- 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
-
- put(Reference, Object, boolean) - Method in interface org.protelis.vm.util.Stack
-
Assign a value to a variable, either overwriting or shadowing prior
value.
- put(Reference, Object, boolean) - Method in class org.protelis.vm.util.StackImpl
-
- putAll(Map<Reference, ? extends Object>) - Method in interface org.protelis.vm.util.Stack
-
Bind a collection of variable/value pairs into the current lexical scope,
e.g., the arguments of a function.
- putAll(Map<Reference, ?>) - Method in class org.protelis.vm.util.StackImpl
-
- 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, boolean) - Method in interface org.protelis.vm.ExecutionContext
-
- putVariable(Reference, Object, boolean) - Method in class org.protelis.vm.impl.AbstractExecutionContext
-
- r - Variable in class org.protelis.test.infrastructure.DummyDevice
-
- random - Variable in class org.protelis.test.infrastructure.RunProtelisProgram
-
- react - Variable in class org.protelis.test.infrastructure.DummyDevice
-
- REACTION - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- REACTIONS_PACKAGE_ROOT - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- readObject(ObjectInputStream) - Method in class it.unibo.alchemist.loader.YamlLoader
-
- readObject(ObjectInputStream) - Method in class org.protelis.lang.interpreter.impl.MethodCall
-
- receiveCache - Variable in class org.protelis.test.infrastructure.CachingNetworkManager
-
- receiveFromNeighbor(DeviceUID, Map<CodePath, Object>) - Method in class org.protelis.test.infrastructure.CachingNetworkManager
-
External access to put messages into receive cache.
- recursivelyCollectErrors(Resource) - Static method in class org.protelis.lang.ProtelisLoader
-
- recursivelyInitFunctions(ProtelisModule, Map<FunctionDef, ? super FunctionDefinition>) - Static method in class org.protelis.lang.ProtelisLoader
-
- recursivelyInitFunctions(ProtelisModule, Map<FunctionDef, ? super FunctionDefinition>, Set<ProtelisModule>) - Static method in class org.protelis.lang.ProtelisLoader
-
- reduce(Iterable<T>, BinaryOperator<T>, T, T) - Static method in class org.protelis.lang.datatype.impl.AbstractField
-
Reduce the desired Iterable
using the provided
BinaryOperator
, excluding an element and returning a default
value if the Iterable
is empty or only contains the value to
exclude.
- reduce(ExecutionContext, Object, FunctionDefinition) - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
-
- reduce(Object, BinaryOperator<Object>) - 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.
- reduce(Object, BinaryOperator<Object>) - Method in interface org.protelis.lang.datatype.Tuple
-
Performs a reduction operation, that maps a tuple to a single value.
- reduceKeys(BinaryOperator<DeviceUID>, DeviceUID) - Method in interface org.protelis.lang.datatype.Field
-
Apply an operator to reduce over the set of all devices, selecting a
single device.
- reduceKeys(BinaryOperator<DeviceUID>, DeviceUID) - Method in class org.protelis.lang.datatype.impl.AbstractField
-
- reducePairs(BinaryOperator<Pair<DeviceUID, Object>>, DeviceUID) - Method in interface org.protelis.lang.datatype.Field
-
Apply an operator to reduce over the set of all device/value pairs,
selecting a single pair.
- reducePairs(BinaryOperator<Pair<DeviceUID, Object>>, DeviceUID) - Method in class org.protelis.lang.datatype.impl.AbstractField
-
- reduceVals(BinaryOperator<Object>, DeviceUID, Object) - Method in interface org.protelis.lang.datatype.Field
-
Apply an operator to reduce over the set of all values, selecting a
single value.
- reduceVals(BinaryOperator<Object>, DeviceUID, Object) - Method in class org.protelis.lang.datatype.impl.AbstractField
-
- Reference - Class in org.protelis.lang.util
-
Implements a serializable reference to an Object.
- Reference(Object) - Constructor for class org.protelis.lang.util.Reference
-
- REFERENCES - Static variable in class org.protelis.lang.ProtelisLoader
-
- ReflectionUtils - Class in org.protelis.lang.util
-
Utilities that make easier to cope with Java Reflection.
- ReflectionUtils() - Constructor for class org.protelis.lang.util.ReflectionUtils
-
- REGEX_PROTELIS_IMPORT - Static variable in class org.protelis.lang.ProtelisLoader
-
- REGEX_PROTELIS_MODULE - Static variable in class org.protelis.lang.ProtelisLoader
-
- 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.
- removeSample(DeviceUID) - Method in interface org.protelis.lang.datatype.Field
-
Remove a neighbor/value pair from this Field.
- removeSample(DeviceUID) - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
-
- repackageIfVarArgs(Method, Object[]) - Static method in class org.protelis.lang.util.ReflectionUtils
-
- reset() - Method in interface org.protelis.lang.interpreter.AnnotatedTree
-
Recursively deletes any existing annotation.
- reset() - Method in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
- resolveFunction(Reference) - Method in class org.protelis.lang.ProtelisLoader.ProgramState
-
- resolvePlaceHolder(Map<String, Double>, Object) - Static method in class it.unibo.alchemist.loader.YamlLoader
-
- RESOLVER - Static variable in class org.protelis.lang.ProtelisLoader
-
- resolveVariable(Object, Map<String, Double>) - Method in class it.unibo.alchemist.loader.YamlLoader
-
- resourceFromString(String) - Static method in class org.protelis.lang.ProtelisLoader
-
- resourceFromURIString(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
-
- restrictedContexts - Variable in class org.protelis.vm.impl.AbstractExecutionContext
-
- RESULT - Static variable in class org.protelis.test.infrastructure.RunProtelisProgram
-
RESULT.
- RESULT_LIST - Static variable in class org.protelis.test.InfrastructureTester.TestMatcher
-
- RESULT_PATTERN - Static variable in class org.protelis.test.InfrastructureTester.TestMatcher
-
- returnFromCallFrame() - Method in interface org.protelis.vm.ExecutionContext
-
returns from the last frame.
- returnFromCallFrame() - Method in class org.protelis.vm.impl.AbstractExecutionContext
-
- reverseLookupTable - Variable in class it.unibo.alchemist.loader.YamlLoader
-
- RIGHT - Static variable in enum org.protelis.lang.util.Op2
-
- rng - Variable in class org.protelis.test.infrastructure.DummyContext
-
- round - Variable in class org.protelis.test.infrastructure.RunProtelisProgram
-
- run(Field, DeviceUID) - Method in enum org.protelis.lang.util.HoodOp
-
- run(Object) - Method in enum org.protelis.lang.util.Op1
-
- run(Object, Object) - Method in enum org.protelis.lang.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.util.Op3
-
- RUN_POS - Static variable in class org.protelis.lang.interpreter.impl.AlignedMap
-
- 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<E>, Consumer<E>) - 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.
- 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
-
- runMethodWithProtelisArguments(ExecutionContext, AnnotatedTree<?>, Class<?>, String, List<AnnotatedTree<?>>) - Static method in class org.protelis.lang.util.JavaInteroperabilityUtils
-
- runMethodWithProtelisArguments(ExecutionContext, AnnotatedTree<?>, String, AnnotatedTree<?>...) - Static method in class org.protelis.lang.util.JavaInteroperabilityUtils
-
- runOp - Variable in class org.protelis.lang.interpreter.impl.AlignedMap
-
- runProgram(String, int) - Static method in class org.protelis.test.ProgramTester
-
- runProtelisFunction(ExecutionContext, AnnotatedTree<FunctionDefinition>, List<AnnotatedTree<?>>) - Static method in class org.protelis.lang.util.JavaInteroperabilityUtils
-
- runProtelisFunctionWithJavaArguments(ExecutionContext, AnnotatedTree<FunctionDefinition>, Object...) - Static method in class org.protelis.lang.util.JavaInteroperabilityUtils
-
- runProtelisFunctionWithJavaArguments(ExecutionContext, FunctionDefinition, List<?>) - Static method in class org.protelis.lang.util.JavaInteroperabilityUtils
-
- RunProtelisProgram - Class in org.protelis.test.infrastructure
-
- RunProtelisProgram(<any>, ProtelisNode, <any>, RandomGenerator, String) - Constructor for class org.protelis.test.infrastructure.RunProtelisProgram
-
- RunProtelisProgram(<any>, ProtelisNode, <any>, RandomGenerator, ProtelisProgram) - Constructor for class org.protelis.test.infrastructure.RunProtelisProgram
-
- runStaticMethodWithProtelisArguments(ExecutionContext, Class<?>, String, AnnotatedTree<?>...) - Static method in class org.protelis.lang.util.JavaInteroperabilityUtils
-
- 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.
- safe - Variable in class org.protelis.vm.util.CodePath
-
This flag switches to true when there are four or less numerical markers.
- SCENARIO_SEED - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- scenarioSeed - Variable in class it.unibo.alchemist.loader.YamlLoader
-
- searchBestMethod(Class<?>, String, List<Object>) - Static method in class org.protelis.lang.util.ReflectionUtils
-
- searchBestMethod(Class<?>, String, Object...) - Static method in class org.protelis.lang.util.ReflectionUtils
-
- SEEDS - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- selection(String, T, T, BinaryOperator<T>) - Static method in enum org.protelis.lang.util.Op2
-
- 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
-
- sendCache - Variable in class org.protelis.test.infrastructure.CachingNetworkManager
-
- serialVersionUID - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.FunctionDefinition
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.AbstractComparableDeviceUID
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.AbstractField
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.ArrayTupleImpl
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.DeviceUUID
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.FieldMapImpl
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.IntegerUID
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.LongUID
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.impl.StringUID
-
- serialVersionUID - Static variable in class org.protelis.lang.datatype.JVMEntity
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.AbstractSATree
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.AlignedMap
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.All
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.BinaryOp
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.Constant
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.CreateTuple
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.CreateVar
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.DotOperator
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.Env
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.Eval
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.FunctionCall
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.GenericHoodCall
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.HoodCall
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.If
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.MethodCall
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.NBRCall
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.NumericConstant
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.Self
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.ShareCall
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.TernaryOp
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.UnaryOp
-
- serialVersionUID - Static variable in class org.protelis.lang.interpreter.impl.Variable
-
- serialVersionUID - Static variable in exception org.protelis.lang.ProtelisRuntimeException
-
- serialVersionUID - Static variable in class org.protelis.lang.util.Reference
-
- serialVersionUID - Static variable in class org.protelis.test.infrastructure.ProtelisNode
-
- serialVersionUID - Static variable in class org.protelis.test.infrastructure.RunProtelisProgram
-
- serialVersionUID - Static variable in class org.protelis.vm.impl.SimpleProgramImpl
-
- serialVersionUID - Static variable in class org.protelis.vm.util.CodePath
-
- 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.
- setAnnotation(T) - Method in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
- setBody(AnnotatedTree<?>) - Method in class org.protelis.lang.datatype.FunctionDefinition
-
- 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
-
- setSuperscript(S) - Method in class org.protelis.lang.interpreter.impl.AbstractSATree
-
- 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
-
- SHAPES_PACKAGE_ROOT - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- ShareCall<S,T> - Class in org.protelis.lang.interpreter.impl
-
Share construct.
- ShareCall(Metadata, Optional<Reference>, Optional<Reference>, AnnotatedTree<?>, AnnotatedTree<?>, Optional<AnnotatedTree<T>>) - Constructor for class org.protelis.lang.interpreter.impl.ShareCall
-
Convenience constructor with Optional
.
- ShareCall(Metadata, Optional<Reference>, Optional<Reference>, AnnotatedTree<?>, AnnotatedTree<?>, Optional<AnnotatedTree<T>>) - Constructor for class org.protelis.lang.interpreter.impl.ShareCall
-
- 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
-
- 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
-
- SimpleProgramImpl(ProtelisModule, AnnotatedTree<?>, Map<Reference, ?>) - Constructor for class org.protelis.vm.impl.SimpleProgramImpl
-
- SimpleProgramImpl(String, AnnotatedTree<?>, Map<Reference, ?>) - Constructor for class org.protelis.vm.impl.SimpleProgramImpl
-
- SIMULATION_SEED - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- SIMULATION_STEPS - Static variable in class org.protelis.test.InfrastructureTester
-
Default runs.
- simulationSeed - Variable in class it.unibo.alchemist.loader.YamlLoader
-
- SINGLETON - Static variable in class org.protelis.test.infrastructure.TestIncarnation
-
- size() - Method in interface org.protelis.lang.datatype.Field
-
- size() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
-
- size() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
-
- size() - Method in interface org.protelis.lang.datatype.Tuple
-
- size - Variable in class org.protelis.vm.util.CodePath
-
- SL_NAME - Static variable in class org.protelis.test.ProgramTester
-
- smaller(Object, Object) - Static method in enum org.protelis.lang.util.Op2
-
- smallerEquals(Object, Object) - Static method in enum org.protelis.lang.util.Op2
-
- sort() - Method in class org.protelis.lang.datatype.impl.ArrayTupleImpl
-
- sort() - Method in interface org.protelis.lang.datatype.Tuple
-
- SpatiallyEmbeddedDevice - 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.
- Stack - Interface in org.protelis.vm.util
-
Stack implementation used by the Protelis VM for tracking local variable
values during execution.
- stack - Variable in class org.protelis.vm.util.StackImpl
-
- stackCode - Variable in class org.protelis.lang.datatype.FunctionDefinition
-
- stackCode - Variable in class org.protelis.lang.interpreter.impl.FunctionCall
-
- StackImpl - Class in org.protelis.vm.util
-
Basic implementation of a
Stack
.
- StackImpl(Map<Reference, ?>) - Constructor for class org.protelis.vm.util.StackImpl
-
- stackOperation(Function<Map<Reference, Object>, Object>) - Method in class org.protelis.vm.util.StackImpl
-
- STEP - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- str - Variable in class it.unibo.alchemist.loader.YamlLoader.PlaceHolder
-
- stream() - Method in exception org.protelis.lang.ProtelisRuntimeException
-
- string - Variable in class org.protelis.lang.datatype.impl.ArrayTupleImpl
-
- string - Variable in class org.protelis.vm.util.CodePath
-
- stringFor(AnnotatedTree<?>) - Static method in class org.protelis.lang.interpreter.impl.AbstractAnnotatedTree
-
- stringOrNull(Object) - Static method in class it.unibo.alchemist.loader.YamlLoader
-
- StringUID - Class in org.protelis.lang.datatype.impl
-
Simple string UIDs.
- StringUID(String) - Constructor for class org.protelis.lang.datatype.impl.StringUID
-
- strRep - Variable in class org.protelis.lang.util.Reference
-
- 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(Field, DeviceUID) - Static method in enum org.protelis.lang.util.HoodOp
-
- superscript - Variable in class org.protelis.lang.interpreter.impl.AbstractSATree
-
- SuperscriptedAnnotatedTree<S,T> - Interface in org.protelis.lang.interpreter
-
Data structure representing the field calculus semantics of annotating
expressions with their evaluated values, in this case a dual annotation of
value and additional evaluation or state in a superscript.
- SupportedEntityTypes() - Constructor for enum org.protelis.lang.datatype.JVMEntity.SupportedEntityTypes
-
- SYNTAX - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- SYNTAX_NAME - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- valIterator() - Method in interface org.protelis.lang.datatype.Field
-
- valIterator() - Method in class org.protelis.lang.datatype.impl.FieldMapImpl
-
- value - Variable in class org.protelis.lang.datatype.JVMEntity
-
- VALUE_FILTER - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- VALUE_FILTER_PACKAGE_ROOT - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- valueOf(String) - Static method in enum org.protelis.lang.datatype.JVMEntity.SupportedEntityTypes
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.protelis.lang.ProtelisLoader.Dispatch
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.protelis.lang.util.HoodOp
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.protelis.lang.util.Op1
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.protelis.lang.util.Op2
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.protelis.lang.util.Op3
-
Returns the enum constant of this type with the specified name.
- VALUES - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- values() - Static method in enum org.protelis.lang.datatype.JVMEntity.SupportedEntityTypes
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.protelis.lang.ProtelisLoader.Dispatch
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.protelis.lang.util.HoodOp
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.protelis.lang.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.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.util.Op3
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- var - Variable in class org.protelis.lang.interpreter.impl.CreateVar
-
- VARIABLE - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- Variable - Class in org.protelis.lang.interpreter.impl
-
Access a variable.
- Variable(Metadata, Reference) - Constructor for class org.protelis.lang.interpreter.impl.Variable
-
- VARIABLES - Static variable in class it.unibo.alchemist.loader.YamlLoader
-
- vm - Variable in class org.protelis.test.infrastructure.RunProtelisProgram
-