Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e30ae9c3 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- fixed incompleteness + bug in inverse()

parent 3293d6df
No related branches found
No related tags found
No related merge requests found
......@@ -114,12 +114,18 @@ public class EDOALCell extends BasicCell {
return linkkeys;
}
public Cell inverse() throws AlignmentException {
public EDOALCell inverse() throws AlignmentException {
EDOALCell invcell = new EDOALCell( (String)null, (Expression)object2, (Expression)object1, relation.inverse(), strength );
for ( Transformation trsf : transformations ) {
invcell.addTransformation( trsf.inverse() );
if ( transformations != null ) {
for ( Transformation trsf : transformations ) {
invcell.addTransformation( trsf.inverse() );
}
}
if ( linkkeys != null ) {
for ( Linkkey lk : linkkeys ) {
invcell.addLinkkey( lk.inverse() );
}
}
// The same should be done for the measure
return invcell;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment