
org.sdmlib.models.taskflows.util.SDMTimerPO Maven / Gradle / Ivy
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);
}
}
public SDMTimerPO(String modifier)
{
this.setModifier(modifier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy