collection = schedule.getMatchingRelationships(child, 0, 5);
timeSpan = TimeSpans.getSpan(0, 5); collection = schedule.getMatchingRelationships(child, timeSpan);
  public static void main(String []args) {    int uidNum = 0;    TestAsset testAsset0 = new TestAsset();    testAsset0.setUID(new UID("testAsset",uidNum));    uidNum++;    TestAsset testAsset1 = new TestAsset();    testAsset1.setUID(new UID("testAsset", uidNum));    uidNum++;    TestAsset testAsset2 = new TestAsset();    testAsset2.setUID(new UID("testAsset",uidNum));    uidNum++;    Role.create("ParentProvider", "ParentCustomer");    Role parent = Role.getRole("ParentProvider");    Role child = Role.getRole("ParentCustomer");        Role.create("GarbageCustomer", "GarbageProvider");    Relationship rel1 = new RelationshipImpl(0, 10, parent,                                              testAsset0, testAsset1);    Relationship rel2 = new RelationshipImpl(5, 15, parent,                                              testAsset1, testAsset0);    Relationship rel3 = new RelationshipImpl(2, 9, child,                                             testAsset1, testAsset0);    Relationship rel4 = new RelationshipImpl(0, 30,                                              Role.getRole("GarbageCustomer"),                                             testAsset0,                                              testAsset1);    Relationship testRel = new RelationshipImpl(0, 30, Role.getRole("GarbageCustomer"),                                                 testAsset1, testAsset0);    RelationshipSchedule schedule = new RelationshipScheduleImpl(testAsset0);    schedule.add(rel1);    schedule.add(rel2);    schedule.add(rel3);    schedule.add(rel4);        System.out.println(schedule);    System.out.println(schedule.iterator());    Collection collection = schedule.getMatchingRelationships(parent);    Iterator iterator = collection.iterator();    System.out.println("Role -" + parent);    while(iterator.hasNext()) {      System.out.println((Relationship)iterator.next());    };    collection = schedule.getMatchingRelationships(parent, 10, 17);    iterator = collection.iterator();    System.out.println("Role -" + parent + " time span 10 - 17");    while(iterator.hasNext()) {      System.out.println((Relationship)iterator.next());    };    collection = schedule.getMatchingRelationships(child, 0, 5);    iterator = collection.iterator();    System.out.println("Role -" + child + " time span 0 - 5");     while(iterator.hasNext()) {      System.out.println((Relationship)iterator.next());    };    collection = schedule.getMatchingRelationships("Provider", 10, 17);    iterator = collection.iterator();    System.out.println("Role Suffix -  'Provider',  time span 10 - 17");    while(iterator.hasNext()) {      System.out.println((Relationship)iterator.next());    };        schedule.add(testRel);  }