public class ScriptLauncher extends Object
Modifier and Type | Field and Description |
---|---|
String[] |
args
Arguments passed to the script
|
Constructor and Description |
---|
ScriptLauncher() |
Modifier and Type | Method and Description |
---|---|
Object |
associated(Graph<?,?> g,
String key,
boolean create)
Get or create associated data.
|
Object |
associated(Graph g,
String key)
Get (existing) associated data
|
DocumentWriter |
createReport(String path,
Map<String,String> properties)
Create a report file, this creates the file and DocumentWriter, don't forget to close it.
|
void |
help()
Show some help about services and data available for scripts
|
RegulatoryGraph |
load(org.colomoto.biolqm.LogicalModel model) |
Graph<?,?> |
load(String filename)
Open a graph from a file.
|
org.colomoto.biolqm.service.LQMServiceManager |
LQM()
Grab a proxy to the bioLQM API
|
String |
nameState(byte[] state,
RegulatoryGraph graph)
Deprecated.
|
Graph<?,?> |
open(String filename)
Deprecated.
see
load(String) |
BasicProgressListener |
progressListener() |
void |
run(String filename,
String[] args)
Run a script: the method is called by the main launcher to launch a GINsim script
|
Service |
service(Class<Service> cl)
Get a service instance
|
Service |
service(String name)
Get a service instance by name
|
public String[] args
public void run(String filename, String[] args)
filename
- script filenameargs
- additional arguments passed on the command linepublic org.colomoto.biolqm.service.LQMServiceManager LQM()
public Graph<?,?> load(String filename) throws GsException
filename
- GsException
public RegulatoryGraph load(org.colomoto.biolqm.LogicalModel model) throws GsException
GsException
@Deprecated public Graph<?,?> open(String filename) throws GsException
load(String)
GsException
@Deprecated public String nameState(byte[] state, RegulatoryGraph graph)
state
- graph
- public Service service(Class<Service> cl)
cl
- the service classpublic Service service(String name)
name
- the service name (class name or alias)public Object associated(Graph g, String key)
g
- key
- public Object associated(Graph<?,?> g, String key, boolean create)
g
- key
- create
- public DocumentWriter createReport(String path, Map<String,String> properties)
path
- properties
- public void help()
public BasicProgressListener progressListener()
Copyright © 2005–2020. All rights reserved.