public final class DummyDevice extends org.protelis.vm.impl.AbstractExecutionContext<DummyDevice> implements org.protelis.vm.SpatiallyEmbeddedDevice<java.lang.Double>, org.protelis.vm.LocalizedDevice, org.protelis.vm.TimeAwareDevice<java.lang.Double>
ProtelisVM and a network interface.| Constructor and Description |
|---|
DummyDevice(it.unibo.alchemist.model.interfaces.Environment<java.lang.Object> environment,
ProtelisNode node,
it.unibo.alchemist.model.interfaces.Reaction<java.lang.Object> reaction,
org.apache.commons.math3.random.RandomGenerator random,
org.protelis.vm.NetworkManager netmgr) |
| Modifier and Type | Method and Description |
|---|---|
org.protelis.lang.datatype.Tuple |
getCoordinates() |
java.lang.Number |
getCurrentTime() |
java.lang.Number |
getDeltaTime() |
org.protelis.lang.datatype.DeviceUID |
getDeviceUID() |
protected DummyDevice |
instance() |
org.protelis.lang.datatype.Field<java.lang.Double> |
nbrDelay() |
org.protelis.lang.datatype.Field<java.lang.Double> |
nbrLag() |
org.protelis.lang.datatype.Field<java.lang.Double> |
nbrRange() |
org.protelis.lang.datatype.Field<org.protelis.lang.datatype.Tuple> |
nbrVector() |
double |
nextRandomDouble()
Note: this should be going away in the future, to be replaced by standard
Java random.
|
java.lang.String |
toString() |
buildField, buildFieldDeferred, commit, commitRecursively, getExecutionEnvironment, getFunctions, getNetworkManager, getPersistent, getStoredState, getVariable, newCallStackFrame, newCallStackFrame, putMultipleVariables, putVariable, restrictDomain, returnFromCallFrame, runInNewStackFrame, setGloballyAvailableReferences, setPersistent, setupclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildField, buildFieldDeferred, commit, getExecutionEnvironment, getPersistent, getVariable, newCallStackFrame, newCallStackFrame, putMultipleVariables, putVariable, restrictDomain, returnFromCallFrame, runInNewStackFrame, setGloballyAvailableReferences, setPersistent, setuppublic DummyDevice(it.unibo.alchemist.model.interfaces.Environment<java.lang.Object> environment,
ProtelisNode node,
it.unibo.alchemist.model.interfaces.Reaction<java.lang.Object> reaction,
org.apache.commons.math3.random.RandomGenerator random,
org.protelis.vm.NetworkManager netmgr)
environment - environmentnode - nodereaction - reactionrandom - randomnetmgr - netmgrpublic org.protelis.lang.datatype.DeviceUID getDeviceUID()
getDeviceUID in interface org.protelis.vm.ExecutionContextpublic java.lang.Number getCurrentTime()
getCurrentTime in interface org.protelis.vm.ExecutionContextpublic java.lang.Number getDeltaTime()
getDeltaTime in interface org.protelis.vm.ExecutionContextgetDeltaTime in class org.protelis.vm.impl.AbstractExecutionContext<DummyDevice>protected DummyDevice instance()
instance in class org.protelis.vm.impl.AbstractExecutionContext<DummyDevice>public double nextRandomDouble()
nextRandomDouble in interface org.protelis.vm.ExecutionContextpublic org.protelis.lang.datatype.Field<java.lang.Double> nbrRange()
nbrRange in interface org.protelis.vm.SpatiallyEmbeddedDevice<java.lang.Double>public org.protelis.lang.datatype.Field<java.lang.Double> nbrDelay()
nbrDelay in interface org.protelis.vm.TimeAwareDevice<java.lang.Double>public org.protelis.lang.datatype.Field<java.lang.Double> nbrLag()
nbrLag in interface org.protelis.vm.TimeAwareDevice<java.lang.Double>public org.protelis.lang.datatype.Tuple getCoordinates()
getCoordinates in interface org.protelis.vm.LocalizedDevicepublic org.protelis.lang.datatype.Field<org.protelis.lang.datatype.Tuple> nbrVector()
nbrVector in interface org.protelis.vm.LocalizedDevicepublic java.lang.String toString()
toString in class java.lang.Object