filterProjectionsOnTime(Collection projections, long startGen, long endGen) Filter the passed in collection of projection tasks to those overlapping the period
between the start and end time.
filterSupplyTasksOnTime(Collection supplyTasks, long startGen, long endGen) Filter the passed in collection of projection tasks to those overlapping the period
between the start and end time.
Filter the passed in collection of projection tasks to those overlapping the period
between the start and end time.
Parameters: projections - - whole collection of projection tasks Parameters: startGen - - start time for generating supply tasks Parameters: endGen - - end time for generating supply tasks Collection of projection tasks filtered by start and end time.
Filter the passed in collection of projection tasks to those overlapping the period
between the start and end time.
Parameters: projections - - whole collection of projection tasks Parameters: startGen - - start time for generating supply tasks Parameters: endGen - - end time for generating supply tasks Collection of projection tasks filtered by start and end time.
TODO: MWD Remove
Find the earliest and latest times of all the org activites.
private void computeOrgTimes(Enumeration orgActs) {
long latestEnd = 0;
long earliestStart = 0;
while(orgActs.hasMoreElements()) {
OrgActivity oa = (OrgActivity) orgActs.nextElement();
long endTime = oa.getEndTime();
if (endTime > latestEnd) {
latestEnd = endTime;
}
long startTime = oa.getStartTime();
if (startTime < earliestStart) {
earliestStart = startTime;
}
}
orgEndTime = latestEnd;
orgStartTime = earliestStart;
}
public long getOrgStartTime() {
return orgStartTime;
}
public long getOrgEndTime() {
return orgEndTime;
}
Creates an instance of an DemandTaskGeneratorIfc by
searching plugin parameters for DEMAND_GENERATOR argument.
In the absence of an REQ_EXPANDER argument, a default is used:
org.cougaar.logistics.plugin.demand.DemandTaskGenerator
DemandTaskGeneratorIfc
protected long getStartOfPeriod(long timeIn)(Code)
Get the time in milliseconds that would be midnight of the day
before or first thing in the morning today.
- the time in milliseconds that represents first thing in themorning today
protected long nextDemandPeriod(Collection projections, long aTime)(Code)
Find the earliest projection after the time passed in.
Parameters: projections - - whole collection of projection tasks Parameters: aTime - - time concerned with to find whether in a demand period Collection of projection tasks filtered by start and end time.
protected boolean periodInDemandPeriod(Collection projections, long startGen, long endGen)(Code)
Find out if passed in time is in a demand period
Parameters: projections - - whole collection of projection tasks Parameters: startGen - - time concerned with to find whether in a demand period Parameters: endGen - - time concerned with to find whether in a demand period Collection of projection tasks filtered by start and end time.