class LatticeHelper {

	static Lattice createLattice(LevelFunction levelFunction) {
		int columnPairs = levelFunction.size();
		Lattice lattice = new LatticeImpl(levelFunction);
		MDSite lhs = new MDSiteImpl(columnPairs);
		for (int rhsAttr = 0; rhsAttr < columnPairs; rhsAttr++) {
			MD md = createMD(lhs, rhsAttr);
			lattice.add(md);
		}
		return lattice;
	}

}