EmbASP-Python v7.1.0
Public Member Functions | List of all members
base.input_program.InputProgram Class Reference
Inheritance diagram for base.input_program.InputProgram:
languages.asp.asp_input_program.ASPInputProgram languages.datalog.datalog_input_program.DatalogInputProgram languages.pddl.pddl_input_program.PDDLInputProgram

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)

Detailed Description

Represents a generic option.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ add_files_path()

def base.input_program.InputProgram.add_files_path (   self,
Add a new file path into __files_paths.

The parameter file_path represents a new file path.

◆ add_object_input()

def base.input_program.InputProgram.add_object_input (   self,

◆ add_objects_input()

def base.input_program.InputProgram.add_objects_input (   self,

◆ add_program()

def base.input_program.InputProgram.add_program (   self,
Adds a new instruction directly into _programs.

The parameter new_instruction represents a new program

◆ clear_all()

def base.input_program.InputProgram.clear_all (   self)
After this method, both __files_paths and _programs will be

◆ clear_files_paths()

def base.input_program.InputProgram.clear_files_paths (   self)
After this method, __files_paths will be empty.

◆ clear_programs()

def base.input_program.InputProgram.clear_programs (   self)
After this method, _programs will be empty.

◆ get_files_paths()

def base.input_program.InputProgram.get_files_paths (   self)
Returns the __files_paths list.

◆ get_programs()

def base.input_program.InputProgram.get_programs (   self)
Returns data stored in _programs.

◆ get_separator()

def base.input_program.InputProgram.get_separator (   self)
Returns the _separator character.

◆ get_string_of_files_paths()

def base.input_program.InputProgram.get_string_of_files_paths (   self)
Returns string concatenating files paths.

◆ set_programs()

def base.input_program.InputProgram.set_programs (   self,
Sets _programs value to the given one.

The parameter programs represents a new value.

◆ set_separator()

def base.input_program.InputProgram.set_separator (   self,
Set programs separator to the given one.

The parameter separator is used as new separator.

The documentation for this class was generated from the following file: