![JAR search and dependency download from the Maven repository](/logo.png)
org.sdmlib.replication.util.RemoteTaskBoardPO 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.replication.util;
import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.replication.Lane;
import org.sdmlib.replication.RemoteTaskBoard;
import org.sdmlib.replication.util.LanePO;
import org.sdmlib.replication.util.RemoteTaskBoardPO;
public class RemoteTaskBoardPO extends PatternObject
{
public RemoteTaskBoardSet allMatches()
{
this.setDoAllMatches(true);
RemoteTaskBoardSet matches = new RemoteTaskBoardSet();
while (this.getPattern().getHasMatch())
{
matches.add((RemoteTaskBoard) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public RemoteTaskBoardPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public RemoteTaskBoardPO(RemoteTaskBoard... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
public LanePO hasLanes()
{
LanePO result = new LanePO(new Lane[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(RemoteTaskBoard.PROPERTY_LANES, result);
return result;
}
public LanePO createLanes()
{
return this.startCreate().hasLanes().endCreate();
}
public RemoteTaskBoardPO hasLanes(LanePO tgt)
{
return hasLinkConstraint(tgt, RemoteTaskBoard.PROPERTY_LANES);
}
public RemoteTaskBoardPO createLanes(LanePO tgt)
{
return this.startCreate().hasLanes(tgt).endCreate();
}
public LaneSet getLanes()
{
if (this.getPattern().getHasMatch())
{
return ((RemoteTaskBoard) this.getCurrentMatch()).getLanes();
}
return null;
}
public LanePO filterLanes()
{
LanePO result = new LanePO(new Lane[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(RemoteTaskBoard.PROPERTY_LANES, result);
return result;
}
public RemoteTaskBoardPO filterLanes(LanePO tgt)
{
return hasLinkConstraint(tgt, RemoteTaskBoard.PROPERTY_LANES);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy