src/test/java/org/thegalactic/context/constraint/numerical/NumericalStorageTest.java
protected void initializeAllen(NumericalStorage storage1, NumericalStorage storage2) {
        // See https://en.wikipedia.org/wiki/Allen's_interval_algebra
        storage1.setInf(0, 0);
        storage1.setSup(0, 10);
        storage2.setInf(0, 20);
        storage2.setSup(0, 30);

        storage1.setInf(1, 0);
        storage1.setSup(1, 10);
        storage2.setInf(1, 10);
        storage2.setSup(1, 20);

        storage1.setInf(2, 0);
        storage1.setSup(2, 10);
        storage2.setInf(2, 5);
        storage2.setSup(2, 15);

        storage1.setInf(3, 0);
        storage1.setSup(3, 10);
        storage2.setInf(3, 0);
        storage2.setSup(3, 15);

        storage1.setInf(4, 0);
        storage1.setSup(4, 10);
        storage2.setInf(4, -5);
        storage2.setSup(4, 15);

        storage1.setInf(5, 0);
        storage1.setSup(5, 10);
        storage2.setInf(5, -5);
        storage2.setSup(5, 10);

        storage1.setInf(6, 0);
        storage1.setSup(6, 10);
        storage2.setInf(6, 0);
        storage2.setSup(6, 10);
    }
/**
     * Initialize Allen's intervals.
     *
     * @param storage1 first storage
     * @param storage2 second storage
     */
Initialize Allen's intervals.
@param storage1 first storage
@param storage2 second storage
Initialize Allen ' s intervals . @param storage1 first storage @param storage2 second storage
protected void initializeAllen(NumericalStorage storage1, NumericalStorage storage2) {
        storage1.setInf(0, 0);
        storage1.setSup(0, 10);
        storage2.setInf(0, 20);
        storage2.setSup(0, 30);
        storage1.setInf(1, 0);
        storage1.setSup(1, 10);
        storage2.setInf(1, 10);
        storage2.setSup(1, 20);
        storage1.setInf(2, 0);
        storage1.setSup(2, 10);
        storage2.setInf(2, 5);
        storage2.setSup(2, 15);
        storage1.setInf(3, 0);
        storage1.setSup(3, 10);
        storage2.setInf(3, 0);
        storage2.setSup(3, 15);
        storage1.setInf(4, 0);
        storage1.setSup(4, 10);
        storage2.setInf(4, -5);
        storage2.setSup(4, 15);
        storage1.setInf(5, 0);
        storage1.setSup(5, 10);
        storage2.setInf(5, -5);
        storage2.setSup(5, 10);
        storage1.setInf(6, 0);
        storage1.setSup(6, 10);
        storage2.setInf(6, 0);
        storage2.setSup(6, 10);
    }
protected void initializeAllen ( NumericalStorage storage1 , NumericalStorage storage2 ) { storage1 . setInf ( 0 , 0 ) ; storage1 . setSup ( 0 , 10 ) ; storage2 . setInf ( 0 , 20 ) ; storage2 . setSup ( 0 , 30 ) ; storage1 . setInf ( 1 , 0 ) ; storage1 . setSup ( 1 , 10 ) ; storage2 . setInf ( 1 , 10 ) ; storage2 . setSup ( 1 , 20 ) ; storage1 . setInf ( 2 , 0 ) ; storage1 . setSup ( 2 , 10 ) ; storage2 . setInf ( 2 , 5 ) ; storage2 . setSup ( 2 , 15 ) ; storage1 . setInf ( 3 , 0 ) ; storage1 . setSup ( 3 , 10 ) ; storage2 . setInf ( 3 , 0 ) ; storage2 . setSup ( 3 , 15 ) ; storage1 . setInf ( 4 , 0 ) ; storage1 . setSup ( 4 , 10 ) ; storage2 . setInf ( 4 , - 5 ) ; storage2 . setSup ( 4 , 15 ) ; storage1 . setInf ( 5 , 0 ) ; storage1 . setSup ( 5 , 10 ) ; storage2 . setInf ( 5 , - 5 ) ; storage2 . setSup ( 5 , 10 ) ; storage1 . setInf ( 6 , 0 ) ; storage1 . setSup ( 6 , 10 ) ; storage2 . setInf ( 6 , 0 ) ; storage2 . setSup ( 6 , 10 ) ; }
Initialize Allen's intervals.
Initialize Allen ' s intervals .
// See https://en.wikipedia.org/wiki/Allen's_interval_algebra