yawning_titan.envs.generic.core.red_interface#

Classes

RedInterface

The interface used by the Red Agents to act within the environment.

class yawning_titan.envs.generic.core.red_interface.RedInterface(network_interface)[source]#

The interface used by the Red Agents to act within the environment.

Initialise the red interface.

Parameters:

network_interface – Object from the NetworkInterface class

__init__(network_interface)[source]#

Initialise the red interface.

Parameters:

network_interface – Object from the NetworkInterface class

perform_action()[source]#

Chooses and then performs an action.

This is called for every one of the red agents turns

Returns:

A tuple containing the name of the action, the success status, the target, the attacking node and any natural spreading attacks