yawning_titan.envs.specific.core.node_states#
Functions
Return a list of compromised nodes. |
|
Return a list containing all the linked compromised nodes relative to the red agents current position. |
|
Calculate the state of the nodes linked the red team's current position. |
|
Return a list containing all the linked uncompromised nodes relative to the red agents current position. |
|
Return a list of uncompromised nodes. |
- yawning_titan.envs.specific.core.node_states.get_linked_node_state(current_position, network, machine_states)[source]#
Calculate the state of the nodes linked the red team’s current position.
- Parameters:
current_position – The current Red Team’s location
network – A networkx graph representation of the network
machine_states – The current machine states
- Returns:
A list of uncompromised linked nodes compromised_nodes: A list of compromised linked nodes
- Return type:
uncompromised_nodes
- yawning_titan.envs.specific.core.node_states.get_linked_compromised_nodes(current_position, network, machine_states)[source]#
Return a list containing all the linked compromised nodes relative to the red agents current position.
- Parameters:
current_position – The red teams current position
network – A networkx graph representation of the network
machine_states – The current machine states
- Returns:
A list of comrpomised linked nodes
- Return type:
compromised nodes
- yawning_titan.envs.specific.core.node_states.get_linked_uncompromised_nodes(current_position, network, machine_states)[source]#
Return a list containing all the linked uncompromised nodes relative to the red agents current position.
- Parameters:
current_position – The red teams current position
network – A networkx graph representation of the network
machine_states – The current machine states
- Returns:
A list of uncomrpomised linked nodes
- Return type:
compromised nodes
- yawning_titan.envs.specific.core.node_states.get_uncompromised_nodes(machine_states)[source]#
Return a list of uncompromised nodes.
- Parameters:
machine_states – The current machine states
- Returns:
A list of uncompromised nodes
Notes
This differs from the similar function above because this function does not support returning uncompromised nodes based on an agents current position
- yawning_titan.envs.specific.core.node_states.get_compromised_nodes(machine_states)[source]#
Return a list of compromised nodes.
- Parameters:
machine_states – The current machine states
- Returns:
A list of compromised nodes
Notes
This differs from the similar function above because this function does not support returning uncompromised nodes based on an agents current position