org.sdmlib.models.taskflows.util.SDMTimerPO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SDMLib Show documentation
Show all versions of SDMLib Show documentation
SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.
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