zeus.generator.code
Class ScriptWriter
java.lang.Object
zeus.generator.code.Writer
zeus.generator.code.ScriptWriter
- public class ScriptWriter
- extends Writer
ScriptWriter is responsible for generating the files that are used to
invoke a zeus agency from a command prompt
This class was altered somewhat for v1.2.2 so that zsh is supported.
|
Method Summary |
void |
normalScripts(int mode)
|
void |
write()
|
protected void |
writeCommand(int mode,
GenerationInfo info,
java.io.PrintWriter out)
|
protected java.lang.String |
writeForScript(int mode,
GenerationInfo info,
java.io.PrintWriter out)
very simple at the moment, could extend it to allow people
to specify the number of these to be run |
void |
zshScripts(int mode)
generate scripts for the Zsh shell - one script that runs the nameserver, then runs
a instance of zsh and invokes the task agents in it, and the facilitator.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
language
protected java.lang.String language
ZSHUNIX
protected int ZSHUNIX
ZSHWINDOWS
protected int ZSHWINDOWS
ScriptName
protected static final java.lang.String[][] ScriptName
Preamble
protected static final java.lang.String[][] Preamble
ScriptWriter
public ScriptWriter(GenerationPlan genplan,
GeneratorModel genmodel,
java.lang.String directory,
javax.swing.JTextArea textArea)
write
public void write()
zshScripts
public void zshScripts(int mode)
- generate scripts for the Zsh shell - one script that runs the nameserver, then runs
a instance of zsh and invokes the task agents in it, and the facilitator.
A runVis script is also written so that visualisation agents can be run easily
This is quite a simple implementation, so it doesn't handle all the issues like
remote deployment that zeus normally does.
- Parameters:
mode - - unix(0) or widows (1)- Since:
- 1.2.2
normalScripts
public void normalScripts(int mode)
writeForScript
protected java.lang.String writeForScript(int mode,
GenerationInfo info,
java.io.PrintWriter out)
- very simple at the moment, could extend it to allow people
to specify the number of these to be run
writeCommand
protected void writeCommand(int mode,
GenerationInfo info,
java.io.PrintWriter out)
Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.