Search in sources :

Example 1 with OplDelta

use of catdata.opl.OplExp.OplDelta in project fql by CategoricalData.

the class OplParser method toFDM.

private static OplExp toFDM(Object c) {
    Tuple3 t = (Tuple3) c;
    String i = (String) t.b;
    String r = (String) t.c;
    if (t.a.toString().equals("delta")) {
        return new OplDelta(i, r);
    } else if (t.a.toString().equals("sigma")) {
        return new OplSigma(i, r);
    }
    throw new RuntimeException();
}
Also used : OplDelta(catdata.opl.OplExp.OplDelta) Tuple3(org.jparsec.functors.Tuple3) OplSigma(catdata.opl.OplExp.OplSigma)

Aggregations

OplDelta (catdata.opl.OplExp.OplDelta)1 OplSigma (catdata.opl.OplExp.OplSigma)1 Tuple3 (org.jparsec.functors.Tuple3)1