SplitParameter implements NetworkParameter, Comparable<SplitParameter> { public String getName() { return "d." + d_base.getId() + "." + d_subj.getId() + "." + (d_direct ? "dir" : "ind"); } SplitParameter(Treatment base, Treatment subj, boolean direct); String getName(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); int compareTo(SplitParameter other); Treatment getBaseline(); Treatment getSubject(); boolean isDirect();  }
@Test public void testGetName() { Treatment t1 = new Treatment("A_1"); Treatment t2 = new Treatment("B52"); assertEquals("d.A_1.B52.dir", new SplitParameter(t1, t2, true).getName()); assertEquals("d.A_1.B52.ind", new SplitParameter(t1, t2, false).getName()); }