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