Skip to content

autonomy.fsm.scaffold.base

FSM scaffold tools.

AbstractFileGenerator Objects

class AbstractFileGenerator(ABC)

An abstract class for file generators.

__init__

def __init__(ctx: Context, skill_name: str, dfa: DFA) -> None

Initialize the abstract file generator.

get_file_content

@abstractmethod
def get_file_content() -> str

Get file content.

write_file

def write_file(output_dir: Path) -> None

Write the file to output_dir/FILENAME.

abci_app_name

@property
def abci_app_name() -> str

ABCI app class name

fsm_name

@property
def fsm_name() -> str

FSM base name

author

@property
def author() -> str

Author

all_rounds

@property
def all_rounds() -> List[str]

Rounds

degenerate_rounds

@property
def degenerate_rounds() -> List[str]

Degenerate rounds

rounds

@property
def rounds() -> List[str]

Non-degenerate rounds

behaviours

@property
def behaviours() -> List[str]

Behaviours

payloads

@property
def payloads() -> List[str]

Payloads

template_kwargs

@property
def template_kwargs() -> Dict[str, str]

All keywords for string formatting of templates