pacman.model.routing_table_by_partition package¶
Submodules¶
pacman.model.routing_table_by_partition.multicast_routing_table_by_partition module¶
-
class
pacman.model.routing_table_by_partition.multicast_routing_table_by_partition.
MulticastRoutingTableByPartition
[source]¶ Bases:
object
A set of multicast routing path objects
-
add_path_entry
(entry, router_x, router_y, partition)[source]¶ Adds a multicast routing path entry
Parameters: - entry – the entry to add
- router_x – the x coord of the router
- router_y – the y coord of the router
- partition (
pacman.model.graphs.AbstractOutgoingEdgePartition
) – the partition containing the machine edge
-
get_entries_for_router
(router_x, router_y)[source]¶ Get the set of multicast path entries assigned to this router
Parameters: - router_x – the x coord of the router
- router_y – the y coord of the router
Returns: return all router_path_entries for the router.
-
pacman.model.routing_table_by_partition.multicast_routing_table_by_partition_entry module¶
-
class
pacman.model.routing_table_by_partition.multicast_routing_table_by_partition_entry.
MulticastRoutingTableByPartitionEntry
(out_going_links, outgoing_processors, incoming_processor=None, incoming_link=None)[source]¶ Bases:
object
An entry in a path of a multicast route
Parameters: - out_going_links (iterable of ints between 0 and 5) – the edges this path entry goes down
- outgoing_processors (iterable of ints between 0 and 17) – the processors this path entry goes to
- incoming_processor (int between 0 and 17) – the direction this entry came from
- incoming_link (int between 0 and 5) – the direction this entry came from in link
-
defaultable
¶ The defaultable status of the entry
-
incoming_link
¶ The source link for this path entry
-
incoming_processor
¶ The source processor
-
merge_entry
(other)[source]¶ Merges the another entry with this one and returns a new MulticastRoutingTableByPartitionEntry
Parameters: other – the MulticastRoutingTableByPartitionEntry to merge into this one Returns: a merged MulticastRoutingTableByPartitionEntry
-
out_going_links
¶ The destination links of the entry
-
out_going_processors
¶ The destination processors of the entry
Module contents¶
-
class
pacman.model.routing_table_by_partition.
MulticastRoutingTableByPartition
[source]¶ Bases:
object
A set of multicast routing path objects
-
add_path_entry
(entry, router_x, router_y, partition)[source]¶ Adds a multicast routing path entry
Parameters: - entry – the entry to add
- router_x – the x coord of the router
- router_y – the y coord of the router
- partition (
pacman.model.graphs.AbstractOutgoingEdgePartition
) – the partition containing the machine edge
-
get_entries_for_router
(router_x, router_y)[source]¶ Get the set of multicast path entries assigned to this router
Parameters: - router_x – the x coord of the router
- router_y – the y coord of the router
Returns: return all router_path_entries for the router.
-
-
class
pacman.model.routing_table_by_partition.
MulticastRoutingTableByPartitionEntry
(out_going_links, outgoing_processors, incoming_processor=None, incoming_link=None)[source]¶ Bases:
object
An entry in a path of a multicast route
Parameters: - out_going_links (iterable of ints between 0 and 5) – the edges this path entry goes down
- outgoing_processors (iterable of ints between 0 and 17) – the processors this path entry goes to
- incoming_processor (int between 0 and 17) – the direction this entry came from
- incoming_link (int between 0 and 5) – the direction this entry came from in link
-
defaultable
¶ The defaultable status of the entry
-
incoming_link
¶ The source link for this path entry
-
incoming_processor
¶ The source processor
-
merge_entry
(other)[source]¶ Merges the another entry with this one and returns a new MulticastRoutingTableByPartitionEntry
Parameters: other – the MulticastRoutingTableByPartitionEntry to merge into this one Returns: a merged MulticastRoutingTableByPartitionEntry
-
out_going_links
¶ The destination links of the entry
-
out_going_processors
¶ The destination processors of the entry