Class Task


  • public class Task
    extends Object
    Container representing a task: It ensures that: start + duration = end
    Since:
    04/02/2013
    Author:
    Jean-Guillaume Fages
    • Constructor Detail

      • Task

        public Task​(IntVar s,
                    IntVar d,
                    IntVar e)
        Container representing a task: It ensures that: start + duration = end
        Parameters:
        s - start variable
        d - duration variable
        e - end variable
    • Method Detail

      • ensureBoundConsistency

        public void ensureBoundConsistency()
                                    throws ContradictionException
        Applies BC-filtering so that start + duration = end
        Throws:
        ContradictionException - thrown if a inconsistency has been detected between start, end and duration
      • getStart

        public IntVar getStart()
      • getDuration

        public IntVar getDuration()
      • getEnd

        public IntVar getEnd()