
org.sdmlib.models.taskflows.util.TimerPO 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 java.util.Timer;
import org.sdmlib.models.pattern.PatternObject;
public class TimerPO extends PatternObject
{
public TimerSet allMatches()
{
this.setDoAllMatches(true);
TimerSet matches = new TimerSet();
while (this.getPattern().getHasMatch())
{
matches.add((Timer) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public TimerPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public TimerPO(Timer... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
public TimerPO(String modifier)
{
this.setModifier(modifier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy