net.sourceforge.cilib.problem.dataset
Class StringDataSetBuilder

java.lang.Object
  extended by net.sourceforge.cilib.problem.dataset.DataSetBuilder
      extended by net.sourceforge.cilib.problem.dataset.TextDataSetBuilder
          extended by net.sourceforge.cilib.problem.dataset.StringDataSetBuilder
All Implemented Interfaces:
Serializable, Iterable<DataSet>, Cloneable

public class StringDataSetBuilder
extends TextDataSetBuilder

Author:
Gary Pampara
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.problem.dataset.DataSetBuilder
dataSets
 
Constructor Summary
StringDataSetBuilder()
           
StringDataSetBuilder(StringDataSetBuilder rhs)
           
 
Method Summary
 String get(int index)
           
 StringDataSetBuilder getClone()
          Create a cloned copy of the current object and return it.
 String getLongestString()
          Get the length of the longest string contained in the processed DataSet objects.
 String getShortestString()
          Get the length of the shortest string contained in the processed DataSet objects.
 ArrayList<String> getStrings()
           
 void initialise()
           
 int size()
           
 
Methods inherited from class net.sourceforge.cilib.problem.dataset.DataSetBuilder
addDataSet, getDataSet, iterator, uninitialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDataSetBuilder

public StringDataSetBuilder()

StringDataSetBuilder

public StringDataSetBuilder(StringDataSetBuilder rhs)
Method Detail

getClone

public StringDataSetBuilder getClone()
Description copied from interface: Cloneable
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class DataSetBuilder
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

initialise

public void initialise()
Specified by:
initialise in class TextDataSetBuilder

getStrings

public ArrayList<String> getStrings()

getShortestString

public String getShortestString()
Description copied from class: TextDataSetBuilder
Get the length of the shortest string contained in the processed DataSet objects.

Specified by:
getShortestString in class TextDataSetBuilder
Returns:
The length of the shortest string within this TextDataSetBuilder.

getLongestString

public String getLongestString()
Description copied from class: TextDataSetBuilder
Get the length of the longest string contained in the processed DataSet objects.

Specified by:
getLongestString in class TextDataSetBuilder
Returns:
The length of the longest string within this TextDataSetBuilder.

size

public int size()
Specified by:
size in class TextDataSetBuilder

get

public String get(int index)
Specified by:
get in class TextDataSetBuilder


Copyright © 2009 CIRG. All Rights Reserved.