Alignment API and Server 3.6

fr.inrialpes.exmo.align.impl
Class ObjectCell

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.BasicCell
      extended by fr.inrialpes.exmo.align.impl.ObjectCell
All Implemented Interfaces:
Comparable<Cell>, Cell
Direct Known Subclasses:
OWLAPICell

public class ObjectCell
extends BasicCell

Represents an ontology alignment correspondence.

Version:
$Id: ObjectCell.java 728 2008-06-25 14:27:23Z euzenat $
Author:
Jérôme Euzenat

Field Summary
 
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicCell
extensions, id, object1, object2, relation, semantics, strength
 
Constructor Summary
ObjectCell(String id, Object ob1, Object ob2, Relation rel, double m)
          Creation
 
Method Summary
 Cell compose(Cell c)
           
 void dump(ContentHandler h)
          Housekeeping
 boolean equals(Cell c)
           
 URI getObject1AsURI(Alignment al)
          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; }
 URI getObject2AsURI(Alignment al)
           
 Cell inverse()
           
 
Methods inherited from class fr.inrialpes.exmo.align.impl.BasicCell
accept, compareTo, getExtension, getExtensions, getId, getObject1, getObject1AsURI, getObject2, getObject2AsURI, getRelation, getSemantics, getStrength, setExtension, setExtensions, setId, setObject1, setObject2, setRelation, setSemantics, setStrength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCell

public ObjectCell(String id,
                  Object ob1,
                  Object ob2,
                  Relation rel,
                  double m)
           throws AlignmentException
Creation

Throws:
AlignmentException
Method Detail

equals

public boolean equals(Cell c)
Specified by:
equals in interface Cell
Overrides:
equals in class BasicCell

getObject1AsURI

public URI getObject1AsURI(Alignment al)
                    throws AlignmentException
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; }

Specified by:
getObject1AsURI in interface Cell
Overrides:
getObject1AsURI in class BasicCell
Throws:
AlignmentException

getObject2AsURI

public URI getObject2AsURI(Alignment al)
                    throws AlignmentException
Specified by:
getObject2AsURI in interface Cell
Overrides:
getObject2AsURI in class BasicCell
Throws:
AlignmentException

inverse

public Cell inverse()
             throws AlignmentException
Specified by:
inverse in interface Cell
Overrides:
inverse in class BasicCell
Throws:
AlignmentException

compose

public Cell compose(Cell c)
             throws AlignmentException
Specified by:
compose in interface Cell
Overrides:
compose in class BasicCell
Throws:
AlignmentException

dump

public void dump(ContentHandler h)
Housekeeping

Specified by:
dump in interface Cell
Overrides:
dump in class BasicCell

Alignment API and Server 3.6

(C) INRIA & friends, 2003-2008