spinn_front_end_common.abstract_models package¶
Submodules¶
spinn_front_end_common.abstract_models.abstract_changable_after_run module¶
-
class
spinn_front_end_common.abstract_models.abstract_changable_after_run.
AbstractChangableAfterRun
[source]¶ Bases:
object
An item that can be changed after a call to run, the changes to which might or might not require mapping
-
mark_no_changes
()[source]¶ Marks the point after which changes are reported. Immediately after calling this method, requires_mapping should return False.
-
requires_mapping
¶ True if changes that have been made require that mapping be performed. Note that this should return True the first time it is called, as the vertex must require mapping as it has been created!
-
spinn_front_end_common.abstract_models.abstract_generates_data_specification module¶
-
class
spinn_front_end_common.abstract_models.abstract_generates_data_specification.
AbstractGeneratesDataSpecification
[source]¶ Bases:
object
-
generate_data_specification
(spec, placement)[source]¶ Generate a data specification
Parameters: - spec (
data_specification.DataSpecificationGenerator
) – The data specification to write to - placement – the placement object this spec is associated with
Return type: None
- spec (
-
spinn_front_end_common.abstract_models.abstract_has_associated_binary module¶
-
class
spinn_front_end_common.abstract_models.abstract_has_associated_binary.
AbstractHasAssociatedBinary
[source]¶ Bases:
object
-
get_binary_start_type
()[source]¶ Get the start type of the binary to be run
Return type: spinn_front_end_common.utilities.utility_objs.executable_start_type.ExecutableStartType
-
spinn_front_end_common.abstract_models.abstract_machine_allocation_controller module¶
spinn_front_end_common.abstract_models.abstract_provides_incoming_partition_constraints module¶
-
class
spinn_front_end_common.abstract_models.abstract_provides_incoming_partition_constraints.
AbstractProvidesIncomingPartitionConstraints
[source]¶ Bases:
object
A vertex that can provide constraints for its incoming edge partitions
-
get_incoming_partition_constraints
(partition)[source]¶ Get constraints to be added to the given edge that goes in to a vertex of this vertex
Parameters: partition ( pacman.utilities.utility_objs.outgoing_partition.OutgoingPartition
) – An partition that goes in to this vertexReturns: A list of constraints Return type: list of pacman.model.constraints.abstract_constraint.AbstractConstraint
-
spinn_front_end_common.abstract_models.abstract_provides_key_to_atom_mapping module¶
spinn_front_end_common.abstract_models.abstract_provides_n_keys_for_partition module¶
-
class
spinn_front_end_common.abstract_models.abstract_provides_n_keys_for_partition.
AbstractProvidesNKeysForPartition
[source]¶ Bases:
object
Allows a vertex to provide the number of keys for a partition of edges, rather than relying on the number of atoms in the pre-vertex
-
get_n_keys_for_partition
(partition, graph_mapper)[source]¶ Get the number of keys required by the given partition of edges
Parameters: - partition (
pacman.utilities.utility_objs.outgoing_partition.OutgoingPartition
) – An partition that comes out of this vertex - graph_mapper (
pacman.model.graph.graph_mapper.GraphMapper
) – A mapper between the graphs
Returns: A list of constraints
Return type: list of
pacman.model.constraints.abstract_constraint.AbstractConstraint
- partition (
-
spinn_front_end_common.abstract_models.abstract_provides_outgoing_partition_constraints module¶
-
class
spinn_front_end_common.abstract_models.abstract_provides_outgoing_partition_constraints.
AbstractProvidesOutgoingPartitionConstraints
[source]¶ Bases:
object
A vertex that can provide constraints for its outgoing edge partitions
-
get_outgoing_partition_constraints
(partition)[source]¶ Get constraints to be added to the given edge that comes out of this vertex
Parameters: partition – An edge that comes out of this vertex Returns: A list of constraints Return type: list of pacman.model.constraints.abstract_constraint.AbstractConstraint
-
spinn_front_end_common.abstract_models.abstract_recordable module¶
spinn_front_end_common.abstract_models.abstract_rewrites_data_specification module¶
-
class
spinn_front_end_common.abstract_models.abstract_rewrites_data_specification.
AbstractRewritesDataSpecification
[source]¶ Bases:
object
Indicates an object that allows data to be changed after run, and so can rewrite the data specification
spinn_front_end_common.abstract_models.abstract_send_me_multicast_commands_vertex module¶
-
class
spinn_front_end_common.abstract_models.abstract_send_me_multicast_commands_vertex.
AbstractSendMeMulticastCommandsVertex
[source]¶ Bases:
object
A vertex which wants to commands to be sent to it as multicast packets at fixed points in the simulation
-
pause_stop_commands
¶ The commands needed when pausing or stopping simulation
-
start_resume_commands
¶ The commands needed when starting or resuming simulation
-
timed_commands
¶ The commands to be sent at given times in the simulation
-
spinn_front_end_common.abstract_models.abstract_supports_database_injection module¶
-
class
spinn_front_end_common.abstract_models.abstract_supports_database_injection.
AbstractSupportsDatabaseInjection
[source]¶ Bases:
object
Marks a machine vertex as supporting injection of information via a database running on the controlling host.
-
is_in_injection_mode
¶ Whether this vertex is actually in injection mode.
-
spinn_front_end_common.abstract_models.abstract_vertex_with_dependent_vertices module¶
Module contents¶
-
class
spinn_front_end_common.abstract_models.
AbstractChangableAfterRun
[source]¶ Bases:
object
An item that can be changed after a call to run, the changes to which might or might not require mapping
-
mark_no_changes
()[source]¶ Marks the point after which changes are reported. Immediately after calling this method, requires_mapping should return False.
-
requires_mapping
¶ True if changes that have been made require that mapping be performed. Note that this should return True the first time it is called, as the vertex must require mapping as it has been created!
-
-
class
spinn_front_end_common.abstract_models.
AbstractGeneratesDataSpecification
[source]¶ Bases:
object
-
generate_data_specification
(spec, placement)[source]¶ Generate a data specification
Parameters: - spec (
data_specification.DataSpecificationGenerator
) – The data specification to write to - placement – the placement object this spec is associated with
Return type: None
- spec (
-
-
class
spinn_front_end_common.abstract_models.
AbstractHasAssociatedBinary
[source]¶ Bases:
object
-
get_binary_start_type
()[source]¶ Get the start type of the binary to be run
Return type: spinn_front_end_common.utilities.utility_objs.executable_start_type.ExecutableStartType
-
-
class
spinn_front_end_common.abstract_models.
AbstractMachineAllocationController
[source]¶ Bases:
object
An object that controls the allocation of a machine
-
class
spinn_front_end_common.abstract_models.
AbstractProvidesIncomingPartitionConstraints
[source]¶ Bases:
object
A vertex that can provide constraints for its incoming edge partitions
-
get_incoming_partition_constraints
(partition)[source]¶ Get constraints to be added to the given edge that goes in to a vertex of this vertex
Parameters: partition ( pacman.utilities.utility_objs.outgoing_partition.OutgoingPartition
) – An partition that goes in to this vertexReturns: A list of constraints Return type: list of pacman.model.constraints.abstract_constraint.AbstractConstraint
-
-
class
spinn_front_end_common.abstract_models.
AbstractProvidesKeyToAtomMapping
[source]¶ Bases:
object
interface to provide a mapping between routing key partitions and atom ids
-
class
spinn_front_end_common.abstract_models.
AbstractProvidesNKeysForPartition
[source]¶ Bases:
object
Allows a vertex to provide the number of keys for a partition of edges, rather than relying on the number of atoms in the pre-vertex
-
get_n_keys_for_partition
(partition, graph_mapper)[source]¶ Get the number of keys required by the given partition of edges
Parameters: - partition (
pacman.utilities.utility_objs.outgoing_partition.OutgoingPartition
) – An partition that comes out of this vertex - graph_mapper (
pacman.model.graph.graph_mapper.GraphMapper
) – A mapper between the graphs
Returns: A list of constraints
Return type: list of
pacman.model.constraints.abstract_constraint.AbstractConstraint
- partition (
-
-
class
spinn_front_end_common.abstract_models.
AbstractProvidesOutgoingPartitionConstraints
[source]¶ Bases:
object
A vertex that can provide constraints for its outgoing edge partitions
-
get_outgoing_partition_constraints
(partition)[source]¶ Get constraints to be added to the given edge that comes out of this vertex
Parameters: partition – An edge that comes out of this vertex Returns: A list of constraints Return type: list of pacman.model.constraints.abstract_constraint.AbstractConstraint
-
-
class
spinn_front_end_common.abstract_models.
AbstractRecordable
[source]¶ Bases:
object
Indicates that an object might record some data in to SDRAM
-
class
spinn_front_end_common.abstract_models.
AbstractRewritesDataSpecification
[source]¶ Bases:
object
Indicates an object that allows data to be changed after run, and so can rewrite the data specification
-
class
spinn_front_end_common.abstract_models.
AbstractSendMeMulticastCommandsVertex
[source]¶ Bases:
object
A vertex which wants to commands to be sent to it as multicast packets at fixed points in the simulation
-
pause_stop_commands
¶ The commands needed when pausing or stopping simulation
-
start_resume_commands
¶ The commands needed when starting or resuming simulation
-
timed_commands
¶ The commands to be sent at given times in the simulation
-
-
class
spinn_front_end_common.abstract_models.
AbstractSupportsDatabaseInjection
[source]¶ Bases:
object
Marks a machine vertex as supporting injection of information via a database running on the controlling host.
-
is_in_injection_mode
¶ Whether this vertex is actually in injection mode.
-