コード例 #1
0
  @Test
  public void testSamplingEvent() {
    System.out.println("- testSamplingEvent -");

    System.out.println("Create event");
    Event e = new Event();
    e.setSamplingEvent(host1, 0, 4);
    System.out.println(e.toString());

    System.out.println("Process event in tree");
    tt.processEvent(e);
    System.out.println(tt.treeInfo());
  }
コード例 #2
0
  @Test
  public void testProcessEvent() {

    System.out.println("- testProcessEvent -");

    Host host3 = new Host(deme1, "Host3");

    System.out.println("Create event");
    Event e = new Event();
    e.setInfectionEvent(host1, host3, 2, 3.5);
    System.out.println(e.toString());

    System.out.println("Process event in tree");
    tt.processEvent(e);
    System.out.println(tt.treeInfo());

    // fail("Not yet implemented");
  }