All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.virtdata.ast.VirtDataFlow Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtualdataset libraries, based on apache commons math 4

There is a newer version: 2.12.15
Show newest version
package io.virtdata.ast;

import java.util.ArrayList;
import java.util.List;

public class VirtDataFlow {
    private List expressions = new ArrayList<>();

    public List getExpressions() {
        return expressions;
    }

    public void addExpression(Expression expr) {
        expressions.add(expr);
    }

    public Expression getLastExpression() {
        if (expressions.size()==0) {
            throw new RuntimeException("expressions not initialized, last expression undefined");
        }
        return expressions.get(expressions.size()-1);
    }

    public Expression getFirstExpression() {
        if (expressions.size()==0) {
            throw new RuntimeException("expressions not initialized, first expression undefined.");
        }
        return expressions.get(0);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy