public void consumeTimephased(Schedule schedule,TimephasedConsumer consumer,Object factory){ //claur removed exception
ObjectFactory mspdiTimephasedFactory=(ObjectFactory)factory;
if (!(schedule instanceof Assignment))
return; // only do assignments
Assignment assignment = (Assignment)schedule;
long id = 0;
if ( assignment.getPercentComplete() > 0) {
doQuery(assignment,mspdiTimephasedFactory, consumer,HasTimeDistributedData.ACTUAL_WORK, TimeDistributedTypeMapper.ASSIGNMENT_ACTUAL_WORK, id++);
}
doQuery(assignment,mspdiTimephasedFactory, consumer,HasTimeDistributedData.REMAINING_WORK, TimeDistributedTypeMapper.ASSIGNMENT_REMAINING_WORK, id++);
Object fields[] = HasTimeDistributedData.baselineWorkTypes;
Assignment baselineAssignment;
for (int i = 0; i < fields.length; i++) {
baselineAssignment = assignment.getBaselineAssignment(new Integer(i), false);
if (baselineAssignment == null)
continue;
int mapType = TimeDistributedTypeMapper.getTimeDistributedType(i,false,baselineAssignment);