org.jscience.computing.ai.casebasedreasoning
Class Items

java.lang.Object
  extended by org.jscience.computing.ai.casebasedreasoning.Items

public class Items
extends java.lang.Object

DOCUMENT ME!


Constructor Summary
protected Items(TraitDescriptors traitDescriptors)
          This is the only constructor and it requires TraitDescriptors

Technically, Items doesn't need to know anything about TraitDescriptors,

but a lot of the people who use Items (actually, Item) do.

 
Method Summary
protected  void add(Item item)
          DOCUMENT ME!
protected  void add(TraitDescriptors traitDescriptors, java.lang.String encodedData)
          DOCUMENT ME!
 java.lang.Object clone()
          DOCUMENT ME!
 TraitDescriptors getTraitDescriptors()
          DOCUMENT ME!
 java.util.Iterator iterator()
          DOCUMENT ME!
 int size()
          Number of items in the collection
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Items

protected Items(TraitDescriptors traitDescriptors)
This is the only constructor and it requires TraitDescriptors

Technically, Items doesn't need to know anything about TraitDescriptors,

but a lot of the people who use Items (actually, Item) do.

They could create their own copy, but that would be slow, what with

all the loading and what not. Ditto for storing it with each Item.

So storing TraitDescriptors here is just a minor performance tuning thingy

Method Detail

add

protected void add(Item item)
DOCUMENT ME!

Parameters:
item - DOCUMENT ME!

add

protected void add(TraitDescriptors traitDescriptors,
                   java.lang.String encodedData)
DOCUMENT ME!

Parameters:
traitDescriptors - DOCUMENT ME!
encodedData - DOCUMENT ME!

clone

public java.lang.Object clone()
DOCUMENT ME!

Overrides:
clone in class java.lang.Object
Returns:
DOCUMENT ME!

getTraitDescriptors

public TraitDescriptors getTraitDescriptors()
DOCUMENT ME!

Returns:
DOCUMENT ME!

iterator

public java.util.Iterator iterator()
DOCUMENT ME!

Returns:
DOCUMENT ME!

size

public int size()
Number of items in the collection

Returns:
DOCUMENT ME!