All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sdmlib.models.taskflows.util.SDMTimerPO Maven / Gradle / Ivy

Go to download

SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.

There is a newer version: 2.3.2341
Show newest version
package org.sdmlib.models.taskflows.util;

import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.models.taskflows.SDMTimer;

public class SDMTimerPO extends PatternObject
{

    public SDMTimerSet allMatches()
   {
      this.setDoAllMatches(true);
      
      SDMTimerSet matches = new SDMTimerSet();

      while (this.getPattern().getHasMatch())
      {
         matches.add((SDMTimer) this.getCurrentMatch());
         
         this.getPattern().findMatch();
      }
      
      return matches;
   }


   public SDMTimerPO(){
      newInstance(CreatorCreator.createIdMap("PatternObjectType"));
   }

   public SDMTimerPO(SDMTimer... hostGraphObject) {
      if(hostGraphObject==null || hostGraphObject.length<1){
         return ;
      }
      newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
   
   //==========================================================================
   
   public void schedule(java.util.TimerTask p0)
   {
      if (this.getPattern().getHasMatch())
      {
          ((SDMTimer) getCurrentMatch()).schedule(p0);
      }
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy