execute_sequence_step


Description:

public List<int> execute_sequence_step (List<int> sequence, WorldState target_state)

Executes a single step from a sequence of schemas and returns a list containing the remaining steps. If a step fails the sequence is recalculated based on the supplied target state. The updated sequence is then returned.

Parameters:

sequence A list of schema IDs to execute in sequence
target A WorldState specifying the desired end conditions.

Returns:

A list of schema IDs in order of execution.