EmbASP-Python
output.py
1 class Output(object):
2  """Represents a generic output for a solver."""
3 
4  def __init__(self, output=None, errors=None):
5  self._output = output # Variable in which results are stored
6  self._errors = errors # The errors thrown by the solver
7 
8  def get_errors(self):
9  """Get error string."""
10  return self._errors
11 
12  def get_output(self):
13  """Get output string."""
14  return self._output
15 
16  def set_errors(self, errors):
17  """Set error string."""
18  self._errors = errors
19 
20  def set_output(self, output):
21  """Set output string."""
22  self._output = output
23 
24  def _parse(self):
25  """This method have to be implemented by subclasses to parse a solver
26  output."""
27  pass
base.output.Output
Definition: output.py:1
base.output.Output.get_output
def get_output(self)
Definition: output.py:12
base.output.Output.get_errors
def get_errors(self)
Definition: output.py:8
base.output.Output._errors
_errors
Definition: output.py:6
base.output.Output._output
_output
Definition: output.py:5
base.output.Output.set_errors
def set_errors(self, errors)
Definition: output.py:16
base.output.Output.set_output
def set_output(self, output)
Definition: output.py:20