diff --git a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java index c84a8d31ff723a505e5d5a74c44a7976012cc14f..9104f0b4946c407f01177ff3599665f8184c10a7 100644 --- a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java +++ b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java @@ -47,6 +47,7 @@ import org.semanticweb.owl.align.AlignmentException; import org.semanticweb.owl.align.AlignmentVisitor; import org.semanticweb.owl.align.Cell; import org.semanticweb.owl.align.Relation; +import org.semanticweb.owl.align.Parameters; /** * Represents an OWL ontology alignment. An ontology comprises a number of @@ -83,6 +84,10 @@ public class BasicAlignment implements Alignment { protected Hashtable hash2 = null; + protected long time = 0; + + protected Parameters extensions = null; + /** * This is the URI of the place from which the ontology has been loaded! * This is NOT the Ontology URI which can be obtained by @@ -95,6 +100,8 @@ public class BasicAlignment implements Alignment { public BasicAlignment() { hash1 = new Hashtable(); hash2 = new Hashtable(); + extensions = new BasicParameters(); + setExtension( "method", getClass().getName() ); } // Note: protected is a problem outside of package @@ -155,6 +162,16 @@ public class BasicAlignment implements Alignment { public void setFile2(URI u) { uri2 = u; }; + public Parameters getExtensions(){ return extensions; } + + public void setExtension( String label, String value ) { + extensions.setParameter( label, value ); + }; + + public String getExtension( String label ) { + return (String)extensions.getParameter( label ); + }; + public Enumeration getElements() { //-return hash1.elements(); return new MEnumeration( hash1 );