pacman.model.tags package¶
Module contents¶
Bases:
object
Represents assigned IP Tag and Reverse IP Tags.
Add an IP tag.
Parameters: - ip_tag (IPTag) – The tag to add
- vertex (MachineVertex) – The machine vertex by which the tag is to be used
Raises: PacmanInvalidParameterException –
- If the combination of (board-address, tag) has already been assigned to an IP tag with different properties
- If the combination of (board-address, tag) has already been assigned to a reverse IP tag
Add a reverse IP tag.
Parameters: - reverse_ip_tag (ReverseIPTag) – The tag to add
- vertex (MachineVertex) – The vertex by which the tag is to be used
Raises: PacmanInvalidParameterException –
- If the combination of (board-address, tag) has already been assigned to an IP tag or Reverse IP tag
- If the port of the tag has already been assigned on the given board-address
Get the IP Tags assigned to a given machine vertex.
Parameters: vertex (MachineVertex) – The vertex to get the tags for Returns: An iterable of IPTag, or None if the vertex has no tags Return type: iterable(IPTag) or None
Get the Reverse IP Tags assigned to a given machine vertex.
Parameters: vertex (MachineVertex) – The vertex to get the tags for Returns: An iterable of ReverseIPTag, or None if the vertex has no tags Return type: iterable(ReverseIPTag) or None
The IP tags assigned.
Return type: iterable(IPTag)
The list of (IPTag, vertex) pairs stored.
Return type: iterable(tuple(IPTag, MachineVertex))
The reverse IP tags assigned.
Return type: iterable(ReverseIPTag)