Package logging

Klasse Algorithm<PARAM extends ParameterArea,LOG extends LogElement>

java.lang.Object
logging.Algorithm<PARAM,LOG>
Bekannte direkte Unterklassen:
OurAlgorithm

public abstract class Algorithm<PARAM extends ParameterArea,LOG extends LogElement> extends Object
This class provides the basic algorithm. Use it in assoziation with packages logging and visualization. Extend it by the members you need and overwrite LogElementListrun() which contains the specific algorithmic procedures. Therein you should fill a LogElementList and return it. Parameters for algorithm processing are read from member parameterArea that ist part of the user interface.
Siehe auch:
  • Felddetails

    • title

      protected String title
      Algorithm title.
    • parameterArea

      protected PARAM extends ParameterArea parameterArea
      Algorithm parameter area from which the algorithm gets its parameters.
  • Konstruktordetails

    • Algorithm

      public Algorithm()
      Standard constructor.
    • Algorithm

      public Algorithm(PARAM parameterArea, String title)
      Creates algorithm with specified title and parameter area.
  • Methodendetails

    • run

      public abstract LogElementList<LOG> run()
      Runs the algorithm with parameters specified in parameterArea. Returns the LogElementList produced by the algorithm processing. To use this class you will have to overwrite this method.
      Gibt zurück:
      a LogElementList containing the algorithm processings single steps
    • getTitle

      public String getTitle()
      Returns the algorithm title.
      Gibt zurück:
      the algorithm title.
    • setTitle

      public void setTitle(String title)
      Sets the algorithm's title.
      Parameter:
      title - the algorithm's title
    • setParameterArea

      public void setParameterArea(PARAM parameterArea)
      Sets the algorithm's parameter area.
      Parameter:
      parameterArea - the algorithm's parameter area
    • getParameterArea

      public PARAM getParameterArea()
      Returns the algorithm's parameter area.
      Gibt zurück:
      the algorithm's parameter area