* @param resource
* @return
*/
private static AssignmentFieldFunctor resourceAvailability(SelectFrom clause, Resource resource) {
//TODO this is untested, as histogram is currently broken 8/12/04 hk
ResourceAvailabilityFunctor functor = ResourceAvailabilityFunctor.getInstance(resource);
CollectionIntervalGenerator availability = CollectionIntervalGenerator.getInstance(resource.getAvailabilityTable().getList());
clause.select(functor)
.from(availability); //use range?
return functor;
}