de.dfg.oc.logfileanalyzer
Class DataElement

java.lang.Object
  extended by de.dfg.oc.logfileanalyzer.DataElement

public class DataElement
extends Object

A DataElement stores all classifiers sets (i. e. population, match set, and action set) of one iteration. Each classifier set is stored in a DefaultTableModel that can be directly displayed in the user interface. Furthermore, a DataElement contains references to the DataElements of the previous and next iteration.

Author:
Clemens Gersbacher, Holger Prothmann

Field Summary
private  DefaultTableModel actionSet
          Contains the action set.
private  String input
          The LCS input
private  double iteration
          The iteration number
private  DefaultTableModel matchSet
          Contains the match set.
private  DataElement nextElement
          Reference to the DataElement of the next iteration
private  DefaultTableModel population
          Contains the classifier population.
private  DataElement previousElement
          Reference to the DataElement of the previous iteration
 
Constructor Summary
DataElement()
          Creates an empty DataElement.
 
Method Summary
 DefaultTableModel getActionSet()
          Returns the DefaultTableModel containing the action set.
 String getInput()
          Returns the input of this DataElement.
 double getIteration()
          Returns the iteration of this DataElement.
 DefaultTableModel getMatchSet()
          Returns the DefaultTableModel containing the match set.
 DataElement getNextElement()
          Returns a reference to the DataElement containing the classifier sets for the next iteration.
 DefaultTableModel getPopulation()
          Returns the DefaultTableModel containing the population.
 DataElement getPreviousElement()
          Returns a reference to the DataElement containing the classifier sets for the previous iteration.
 void setActionSet(DefaultTableModel _actionSet)
          Sets the DefaultTableModel containing the action set.
 void setInput(String input)
          Sets the input of this DataElement.
 void setIteration(double _iteration)
          Sets the iteration number.
 void setMatchSet(DefaultTableModel _matchSet)
          Sets the DefaultTableModel containing the match set.
 void setNextElement(DataElement _element)
          Sets the reference to the DataElement containing the classifier sets for the next iteration.
 void setPopulation(DefaultTableModel _population)
          Sets the DefaultTableModel containing the population.
 void setPreviousElement(DataElement _element)
          Sets the reference to the DataElement containing the classifier sets for the previous iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iteration

private double iteration
The iteration number


input

private String input
The LCS input


population

private DefaultTableModel population
Contains the classifier population.


matchSet

private DefaultTableModel matchSet
Contains the match set.


actionSet

private DefaultTableModel actionSet
Contains the action set.


nextElement

private DataElement nextElement
Reference to the DataElement of the next iteration


previousElement

private DataElement previousElement
Reference to the DataElement of the previous iteration

Constructor Detail

DataElement

public DataElement()
Creates an empty DataElement.

Method Detail

getIteration

public double getIteration()
Returns the iteration of this DataElement.

Returns:
the iteration of this DataElement

getPopulation

public DefaultTableModel getPopulation()
Returns the DefaultTableModel containing the population.

Returns:
the DefaultTableModel containing the population

getMatchSet

public DefaultTableModel getMatchSet()
Returns the DefaultTableModel containing the match set.

Returns:
the DefaultTableModel containing the match set

getActionSet

public DefaultTableModel getActionSet()
Returns the DefaultTableModel containing the action set.

Returns:
the DefaultTableModel containing the action set

getNextElement

public DataElement getNextElement()
Returns a reference to the DataElement containing the classifier sets for the next iteration. If there is no next element, the reference points to this. References are managed by the DataMemory.

Returns:
the DataElement containing the classifier sets for the next iteration

getPreviousElement

public DataElement getPreviousElement()
Returns a reference to the DataElement containing the classifier sets for the previous iteration. If there is no previous element, the reference points to this. References are managed by the DataMemory.

Returns:
the DataElement containing the classifier sets for the previous iteration

setNextElement

public void setNextElement(DataElement _element)
Sets the reference to the DataElement containing the classifier sets for the next iteration.

Parameters:
_element - reference to the DataElement containing the classifier sets for the next iteration

setPreviousElement

public void setPreviousElement(DataElement _element)
Sets the reference to the DataElement containing the classifier sets for the previous iteration.

Parameters:
_element - reference to the DataElement containing the classifier sets for the previous iteration

setIteration

public void setIteration(double _iteration)
Sets the iteration number.

Parameters:
_iteration - the iteration number

setPopulation

public void setPopulation(DefaultTableModel _population)
Sets the DefaultTableModel containing the population.

Parameters:
_population - the DefaultTableModel containing the population

setMatchSet

public void setMatchSet(DefaultTableModel _matchSet)
Sets the DefaultTableModel containing the match set.

Parameters:
_matchSet - the DefaultTableModel containing the match set

setActionSet

public void setActionSet(DefaultTableModel _actionSet)
Sets the DefaultTableModel containing the action set.

Parameters:
_actionSet - the DefaultTableModel containing the action set

getInput

public String getInput()
Returns the input of this DataElement.

Returns:
the input of this DataElement

setInput

public void setInput(String input)
Sets the input of this DataElement.

Parameters:
input - the input of this DataElement