Package com.projity.pm.scheduling

Examples of com.projity.pm.scheduling.ScheduleInterval


  /* (non-Javadoc)
   * @see com.projity.pm.scheduling.Schedule#consumeIntervals(com.projity.functor.IntervalConsumer)
   */
  public void consumeIntervals(IntervalConsumer consumer) {
    consumer.consumeInterval(new ScheduleInterval(getStart(),getEnd()));
  }
View Full Code Here


  }

  protected transient static BarClosure barClosureInstance = new BarClosure();
  public void consumeIntervals(IntervalConsumer consumer) {
    if (isWbsParent() || isSubproject()) { //TODO this shouldn't be needed since default assignment should be ok.  See why
      consumer.consumeInterval(new ScheduleInterval(getStart(),getEnd()));
      return;
    }
    barClosureInstance.initialize(consumer,this);
    forEachWorkingInterval(barClosureInstance,true, getEffectiveWorkCalendar());

    // Below is a hack to prevent hanging on void node promotion
    if (barClosureInstance.getCount() == 0) { // if no bars drawn
      consumer.consumeInterval(new ScheduleInterval(getStart(),getEnd()));
    }
  }
View Full Code Here

  /* (non-Javadoc)
   * @see com.projity.pm.scheduling.Schedule#consumeIntervals(com.projity.functor.IntervalConsumer)
   */
  public void consumeIntervals(IntervalConsumer consumer) {
    consumer.consumeInterval(new ScheduleInterval(getStart(),getEnd()));
  }
View Full Code Here

    }

  }
  public ScheduleInterval contains(double t,double deltaT1,double deltaT2,CoordinatesConverter coord){
    if (scheduleCaching){
      ScheduleInterval interval;
      for (Iterator i=intervals.iterator();i.hasNext();){
        interval=(ScheduleInterval)i.next();
        if (coord!=null) interval=coord.adaptSmallBarTimeInterval(interval, this, null);
        if (t>=interval.getStart()-deltaT1&&t<=interval.getEnd()+deltaT2) return interval;
      }
      return null;
    }else{
      if (containsConsumer==null) containsConsumer=new ContainsIntervalConsumer();
      containsConsumer.init(t,deltaT1,deltaT2,coord,this);
View Full Code Here

      if (config==null) config=GraphicConfiguration.getInstance();
      if (config.getGanttBarMinWidth()==0 || node==null || node.getIntervalCount()>1) return interval;
      if (config.getGanttBarMinWidth()>0){
        double minT=timescaleManager.getScale().toTime(config.getGanttBarMinWidth());
        if (interval.getStart()!=interval.getEnd() && interval.getEnd()-interval.getStart()<minT){
          return new ScheduleInterval(interval.getStart(),interval.getStart()+(long)minT);
        }
      }
      return interval;
    }
View Full Code Here

  }

  protected transient static BarClosure barClosureInstance = new BarClosure();
  public void consumeIntervals(IntervalConsumer consumer) {
    if (isWbsParent() || isSubproject()) { //TODO this shouldn't be needed since default assignment should be ok.  See why
      consumer.consumeInterval(new ScheduleInterval(getStart(),getEnd()));
      return;
    }
    barClosureInstance.initialize(consumer,this);
    forEachWorkingInterval(barClosureInstance,true, getEffectiveWorkCalendar());

    // Below is a hack to prevent hanging on void node promotion
    if (barClosureInstance.getCount() == 0) { // if no bars drawn
      consumer.consumeInterval(new ScheduleInterval(getStart(),getEnd()));
    }
  }
View Full Code Here

      if (!(startDate instanceof Date ) || !(finishDate instanceof Date)) {
        System.out.println("bad in GanttBarSingleIntervalGenerator.consumeIntervals()  - prb with statics in jars reloaded");
        return;
      }
     
    consumer.consumeInterval(new ScheduleInterval(((Date)startDate).getTime(),((Date)finishDate).getTime()));
  }
View Full Code Here

        if (ClassUtils.isObjectReadOnly(((GraphicNode)selected).getNode().getImpl())) // pre
          return;
      if (coord!=null){
        long completedT=((GraphicNode)selected).getCompleted();
          if (completedT>=interval.getStart()&&completedT<=interval.getEnd()){
            completedInterval=new ScheduleInterval(interval.getStart(),completedT);
            if (interval.getEnd()>interval.getStart()) completedInterval=coord.adaptSmallBarTimeInterval(completedInterval,node,config);
          }
        interval=coord.adaptSmallBarTimeInterval(interval, node,config);

      }
View Full Code Here

TOP

Related Classes of com.projity.pm.scheduling.ScheduleInterval

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.