cogx.compiler.parser.syntaxtree
Create an actuator for a nD scalar field source
that invokes a
callback function 'newOutput' that is passed a ScalarFieldReader.
Create an actuator for a nD scalar field source
that invokes a
callback function 'newOutput' that is passed a ScalarFieldReader.
This preserves the legacy constructor "new Actuator(source, update)"
Reset supplied: NO
Implicit ClassTag included to disambiguate the signature from another using Function1[Iterator[Float],Unit]
The field to written output to an array each clock cycle.
A callback that is passed an iterator over the new values.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a nD scalar field source
that invokes a
callback function 'newOutput' that is passed an Iterator[Float].
Create an actuator for a nD scalar field source
that invokes a
callback function 'newOutput' that is passed an Iterator[Float].
This preserves the legacy constructor "new Actuator(source, update)"
Reset supplied: YES
The field to written output to an array each clock cycle.
A callback that is passed an iterator over the new values.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a nD scalar field source
that invokes a
callback function 'newOutput' that is passed an Iterator[Float].
Create an actuator for a nD scalar field source
that invokes a
callback function 'newOutput' that is passed an Iterator[Float].
This preserves the legacy constructor "new Actuator(source, update)"
Reset supplied: NO
The field to written output to an array each clock cycle.
A callback that is passed an iterator over the new values.
An actuator that writes source
to output
each cycle.
Add sink
node to this hyperedge.
Add sink
node to this hyperedge.
Circuit that this Node belongs to.
Circuit that this Node belongs to. If the node has no inputs, it must get the owning circuit from the Circuit object (which, as has been noted above, is not thread safe). If it has inputs, it gets the owning circuit from the first input.
The inputs to this kernel, as Fields, not as the base class Hyperedge[Operation]
The inputs to this kernel, as Fields, not as the base class Hyperedge[Operation]
Declare an internal error described by message
.
Declare an internal error described by message
.
Check if node is dead (removed from circuit).
Check if node is dead (removed from circuit).
Get the number of input hyperedges driving this hypernode.
Get the number of input hyperedges driving this hypernode.
Get the number of output hyperedges driven by this hypernode.
Get the number of output hyperedges driven by this hypernode.
Get the output index of a hyperedge on the source.
Get the output index of a hyperedge on the source.
The outputs to this kernel, as Fields, not as the base class Hyperedge[Operation]
The outputs to this kernel, as Fields, not as the base class Hyperedge[Operation]
Remove node
from circuit, recursively removing input nodes that are no
longer used because the removal of node
removed the last sink on all
outputs.
Remove node
from circuit, recursively removing input nodes that are no
longer used because the removal of node
removed the last sink on all
outputs.
Throw an exception if the node is output-connected
After removing this
, recursively remove the inputs if possible
Get the inputs consumed by this node.
Get the inputs consumed by this node.
A hook that should be overridden by users to supply the info needed to reconstruct the sensor or actuator.
A hook that should be overridden by users to supply the info needed to reconstruct the sensor or actuator.
A hook that should be overridden by users if necessary to point to a class with a restore method.
A hook that should be overridden by users if necessary to point to a class with a restore method.
Steal all sinks from another node, from
, and add them to this.
Steal all sinks from another node, from
, and add them to this.
This makes the from
useless since whatever signal it drives is not
used by any other node. Consequently from
is removed from the circuit.
The node from which to steal outputs; this node will then be removed from the circuit after the theft is complete.
A description of the operation and the FieldTypes it operates on
A description of the operation and the FieldTypes it operates on
An output from a Cog computation, called an actuator.
An output scalar field value is generated on every cycle of the simulation. The user function
newOutput
is called when the output is ready, so that the user may use that information elsewhere.This class needs some clean-up, since Actuators are created through both the 'new' keyword and factory object apply() methods. The apply methods are better on the one hand for isolating user code from changes in the platform implementation. However, the recommended approach for saving/restoring Actuators has the user create a subclass of Actuator with restoreParameters and restoringClass overridden.