This class offers the tools for implementing Reflective visitors,
i.e., visitors in which the visit method will depend on the actual
class of the visited object.
Returns the values ofof textual properties (e.g., "rdfs:comment", rdfs:label in RDFS/OWL) for a given entity and for a given natural language (attribute xml:lang).
Finds the visit(X) method corresponding to the object class (subclass of a root class)
Look-up for X in the superclass of c (up to root, otherwise it loops)
If not found, look it up in the implemented interface
(there may be such a method for interfaces)
Used to order the cells in an alignment:
-- this > c iff this.getStrength() < c.getStrength() --
public int compareTo( Cell c ){
//if ( ! (c instanceof Cell) ) return 1;
if ( c.getStrength() > getStrength() ) return 1;
if ( getStrength() > c.getStrength() ) return -1;
return 0;
}
GraphEvaluator: an abstraction that is used for providing evaluation curves
instead of values (or sets of values)
Pair: only used for recording sets of points in a curve
GraphEvaluator is used (generically) in the following way:
- create a GraphEvaluator (new GraphEvaluator)
- fill it with the set of results that you want to evaluate
(.ingest( Alignment, Alignment) and this repetively
- Finally create plot (.eval() )
This abstract class provides the ingest method but not eval which has to be
implemented in subclasses.