| 
  | addTemporal(self,
        pred,
        succ,
        tempType='CS',
        delay=0) | source code |  Add a temporal constraint to the model. A temporal constraint has the following form: 
   predecessor's completion (start) time +delay <=
                   successor's start (completion) time.
Parameter "delay" can be negative. 
    
      Arguments:
      
        
          pred: Predecessor (an activity object) or string 
          "source." Here, "source" specifies a dummy 
          activity that precedes all other activities and starts at time 0.
        
          succ: Successor (an activity object) or string 
          "source." Here, "source" specifies a dummy 
          activity that precedes all other activities and starts at time 0.
        
          tempType (optional): String that differentiates the temporal 
          type. "CS" (default)=Completion-Start, 
          "SS"=Start-Start, "SC"= Start-Completion, 
          "CC"=Completion-Completion.
        
          delay (optional): Time lag between the completion (start) times 
          of two activities.
        
      Return value: New temporal object.
    
      Example usage:
>>> t=model.addTemporal(act1,act2) 
>>> t=model.addTemporal(act1,act2,type="SS",delay=-10) To specify the start time of activity act is exactly 50, we use 
      two temporal constraints: 
>>> t=model.addTemporal("source",act,type="SS",delay=50)
>>> t=model.addTemporal(act,"source",type="SS",delay=50) 
   |