Package cz.vutbr.fit.layout.tools
Class Cli
- java.lang.Object
-
- cz.vutbr.fit.layout.tools.Cli
-
public class Cli extends Object
- Author:
- burgetr
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Clicopy()Creates a sub-shell for parallel tasks.intexecCommandLine(String[] args)cz.vutbr.fit.layout.model.AreaTreegetAreaTree()cz.vutbr.fit.layout.api.ArtifactRepositorygetArtifactRepository()cz.vutbr.fit.layout.model.ArtifactgetLastArtifact()Gets the last created artifact.cz.vutbr.fit.layout.model.PagegetPage()cz.vutbr.fit.layout.api.ServiceManagergetServiceManager()Gets a service manager and repository for generating the artifacr IRIsstatic voidmain(String[] args)voidsetAreaTree(cz.vutbr.fit.layout.model.AreaTree areaTree)voidsetArtifactRepository(cz.vutbr.fit.layout.api.ArtifactRepository artifactRepository)voidsetLastArtifact(cz.vutbr.fit.layout.model.Artifact art)voidsetPage(cz.vutbr.fit.layout.model.Page page)
-
-
-
Method Detail
-
copy
public Cli copy()
Creates a sub-shell for parallel tasks. It shares the same artifact repository and initial initial values of the artifacts being processed.- Returns:
- a new Cli instance for a sub-task
-
getArtifactRepository
public cz.vutbr.fit.layout.api.ArtifactRepository getArtifactRepository()
-
setArtifactRepository
public void setArtifactRepository(cz.vutbr.fit.layout.api.ArtifactRepository artifactRepository)
-
getPage
public cz.vutbr.fit.layout.model.Page getPage()
-
setPage
public void setPage(cz.vutbr.fit.layout.model.Page page)
-
getAreaTree
public cz.vutbr.fit.layout.model.AreaTree getAreaTree()
-
setAreaTree
public void setAreaTree(cz.vutbr.fit.layout.model.AreaTree areaTree)
-
getLastArtifact
public cz.vutbr.fit.layout.model.Artifact getLastArtifact()
Gets the last created artifact.- Returns:
-
setLastArtifact
public void setLastArtifact(cz.vutbr.fit.layout.model.Artifact art)
-
getServiceManager
public cz.vutbr.fit.layout.api.ServiceManager getServiceManager()
Gets a service manager and repository for generating the artifacr IRIs- Returns:
- the service manager
-
execCommandLine
public int execCommandLine(String[] args)
-
main
public static void main(String[] args)
- Parameters:
args-
-
-