Package com.clarkparsia.pellet.datatypes.types.real

Examples of com.clarkparsia.pellet.datatypes.types.real.ContinuousRealInterval.compare()


    assertNull( a.intersection( b ) );
    assertNull( b.intersection( a ) );

    assertEquals( IntervalRelations.PRECEDES, a.compare( b ) );
    assertEquals( IntervalRelations.PRECEDED_BY, b.compare( a ) );
  }

  /**
   * Verify that if two intervals meet (i.e., one's upper is the other's lower
   * and the (in|ex)clusiveness differs), then they do not intersect.
View Full Code Here


    assertNull( a.intersection( b ) );
    assertNull( b.intersection( a ) );

    assertEquals( IntervalRelations.MEETS, a.compare( b ) );
    assertEquals( IntervalRelations.MET_BY, b.compare( a ) );
  }

  /**
   * Verify that the overlap of two intervals with exclusive bounds intersect
   * correctly.
 
View Full Code Here

    assertEquals( a, a.intersection( b ) );
    assertEquals( a, b.intersection( a ) );

    assertEquals( IntervalRelations.STARTS, a.compare( b ) );
    assertEquals( IntervalRelations.STARTED_BY, b.compare( a ) );
  }

  /**
   * Verify that the intersection of a interval with a interval which it
   * starts and which share an exclusive endpoint is correct.
View Full Code Here

    assertEquals( a, a.intersection( b ) );
    assertEquals( a, b.intersection( a ) );

    assertEquals( IntervalRelations.STARTS, a.compare( b ) );
    assertEquals( IntervalRelations.STARTED_BY, b.compare( a ) );
  }

  /**
   * Verify that the intersection of a interval with a interval which it
   * starts but for which the endpoint type is different it correct (i.e., it
View Full Code Here

    assertEquals( a, a.intersection( b ) );
    assertEquals( a, b.intersection( a ) );

    assertEquals( IntervalRelations.DURING, a.compare( b ) );
    assertEquals( IntervalRelations.CONTAINS, b.compare( a ) );
  }

  /**
   * Verify that a interval with unequal bounds is not a point.
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.