Enum asi_core0::Action [] [src]

pub enum Action {
    Terminate,
    Wait(f64),
    Output {
        actuator: ActuatorId,
        memory: MemoryId,
    },
    Input {
        sensor: SensorId,
        memory: MemoryId,
    },
    Alloc {
        slots: usize,
    },
    Free {
        memory: MemoryId,
    },
    Swap {
        memory_a: MemoryId,
        memory_b: MemoryId,
    },
}

Represents an action that the agent takes.

Variants

Terminate the runtime.

Wait a number of seconds.

Send an output signal to actuator from memory slot.

Fields of Output

The actuator to write output to.

The memory slot to write output from.

Read an input signal from sensor and stores it memory slot.

Fields of Input

The sensor to read input from.

The memory slot to store input.

Allocate new memory states. Creates N number of new states.

Fields of Alloc

The number of slots to be allocated.

Free memory state (index). This will insert a default memory state in the middle and shrink memory at the end.

Fields of Free

The memory slot to be freed.

Swap two memory states, likely in order to free memory at the end.

Fields of Swap

The first memory slot.

The second memory slot.

Trait Implementations

impl Debug for Action
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Action
[src]

impl Clone for Action
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Action

impl Sync for Action