org.wwbota.identification
Class SimpleIdentification

java.lang.Object
  |
  +--org.wwbota.identification.SimpleIdentification
All Implemented Interfaces:
Identification

public class SimpleIdentification
extends java.lang.Object
implements Identification

Computer-aided interactive determination of a biological specimen, believed to belong to one of the taxa of the current Taxonomy . This implementation allows any type of Character. It checks that every Criterion probability is stricly superior to a threshold, or the Character is undefined either in the observations or in the database. The threshold value is zero, which implies a cautious behaviour: never eliminate a Taxon if it has a chance to match.

Author:
Jean-Marc Vanel jmvanel@free.fr , Worldwide Botanical Knowledge Base

Field Summary
 double threshold
           
 
Constructor Summary
SimpleIdentification(Taxonomy t)
           
 
Method Summary
 void addCriterion(Character c, java.lang.String spec)
           
 java.util.List getAdvices()
          returns a list of Character, supposed the best to achieve determination.
 Description getDescription()
          Get and set the list of Criteria, that is, the observed characters.
 java.util.List getMatches()
          returns a list of Description
 Taxonomy getTaxonomy()
          Get and set the list of Taxon (items) to be recognized, together with the characters taken in account.
 void setDescription(Description t)
           
 void setTaxonomy(Taxonomy t)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

threshold

public final double threshold
Constructor Detail

SimpleIdentification

public SimpleIdentification(Taxonomy t)
Method Detail

getMatches

public java.util.List getMatches()
returns a list of Description
Specified by:
getMatches in interface Identification
Following copied from interface: org.wwbota.identification.Identification
Returns:
a list of Description objects

getAdvices

public java.util.List getAdvices()
returns a list of Character, supposed the best to achieve determination. NOT IMPLEMENTED: returns all Characters
Specified by:
getAdvices in interface Identification
Following copied from interface: org.wwbota.identification.Identification
Returns:
a list of Character objects, which are the best separating characters to use at this point in the identification process .

getTaxonomy

public Taxonomy getTaxonomy()
Description copied from interface: Identification
Get and set the list of Taxon (items) to be recognized, together with the characters taken in account.
Specified by:
getTaxonomy in interface Identification

setTaxonomy

public void setTaxonomy(Taxonomy t)
Specified by:
setTaxonomy in interface Identification

addCriterion

public void addCriterion(Character c,
                         java.lang.String spec)
                  throws StateNotAllowedException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescription

public Description getDescription()
Description copied from interface: Identification
Get and set the list of Criteria, that is, the observed characters.
Specified by:
getDescription in interface Identification

setDescription

public void setDescription(Description t)
Specified by:
setDescription in interface Identification