EmbASP-Theoretic v7.1.0
|
Public Member Functions | |
def | __init__ (self) |
def | add_object_input (self, input_obj) |
def | add_objects_input (self, input_objs) |
def | add_files_path (self, file_path) |
def | add_program (self, new_instruction) |
def | clear_files_paths (self) |
def | clear_programs (self) |
def | clear_all (self) |
def | get_files_paths (self) |
def | get_programs (self) |
def | get_separator (self) |
def | get_string_of_files_paths (self) |
def | set_programs (self, programs) |
def | set_separator (self, separator) |
Represents a generic option.
def base.input_program.InputProgram.__init__ | ( | self | ) |
Creates new programs setting space as default separator.
Reimplemented in languages.datalog.datalog_input_program.DatalogInputProgram, and languages.asp.asp_input_program.ASPInputProgram.
def base.input_program.InputProgram.add_files_path | ( | self, | |
file_path | |||
) |
Add a new file path into __files_paths. The parameter file_path represents a new file path.
def base.input_program.InputProgram.add_object_input | ( | self, | |
input_obj | |||
) |
def base.input_program.InputProgram.add_objects_input | ( | self, | |
input_objs | |||
) |
def base.input_program.InputProgram.add_program | ( | self, | |
new_instruction | |||
) |
Adds a new instruction directly into _programs. The parameter new_instruction represents a new program instruction.
def base.input_program.InputProgram.clear_all | ( | self | ) |
After this method, both __files_paths and _programs will be empty.
def base.input_program.InputProgram.clear_files_paths | ( | self | ) |
After this method, __files_paths will be empty.
def base.input_program.InputProgram.clear_programs | ( | self | ) |
After this method, _programs will be empty.
def base.input_program.InputProgram.get_files_paths | ( | self | ) |
Returns the __files_paths list.
def base.input_program.InputProgram.get_programs | ( | self | ) |
Returns data stored in _programs.
def base.input_program.InputProgram.get_separator | ( | self | ) |
Returns the _separator character.
def base.input_program.InputProgram.get_string_of_files_paths | ( | self | ) |
Returns string concatenating files paths.
def base.input_program.InputProgram.set_programs | ( | self, | |
programs | |||
) |
Sets _programs value to the given one. The parameter programs represents a new value.
def base.input_program.InputProgram.set_separator | ( | self, | |
separator | |||
) |
Set programs separator to the given one. The parameter separator is used as new separator.