Relationship relationship = (Relationship)obj; return ((schedule.getOther(relationship).equals(other)) && ((relationship.getStartTime() < endTime) && (relationship.getEndTime() > startTime))); }
Relationship relationship = (Relationship)obj; return ((schedule.getOtherRole(relationship).equals(role)) && (schedule.getOther(relationship).equals(otherObject)) && (time >= relationship.getStartTime()) && (time < relationship.getEndTime())); }
      public boolean execute(Object obj) {        Relationship relationship = (Relationship)obj;        return ((schedule.getOther(relationship).equals(other)) &&                ((relationship.getStartTime() < endTime) &&                 (relationship.getEndTime() > startTime)));      }