BaseOption
- class ase2sprkkr.common.options.BaseOption(definition, container=None)[source]
A base placeholder for a leaf element of a grammar file, both the a-value-holding ones (
Option) and dummy ones (Dummy)Class hierarchy
Constructor
- __init__(definition, container=None)
Create the object. Just sets the two properties from the parameters.
- Parameters:
definition (ase2sprkkr.common.configuration_definitions.BaseDefinition) – Definition of this configuration object.
container (ase2sprkkr.common.configuration_containers.ConfigurationContainer) – The container, that owns this configuration object.
- _save_to_file(file, always=False, name_in_grammar=None, delimiter='')[source]
Write the name-value pair to the given file, if the value is set.
- stage_clear(transaction, *, check_required=True)[source]
Return false because a placeholder has no state to stage.
- Parameters:
transaction (ase2sprkkr.common.configuration_transaction.ConfigurationTransaction)
check_required (bool)
- Return type:
bool