edu.colorado.cs.ns2.sys
Class RunCommand

java.lang.Object
  extended by edu.colorado.cs.ns2.sys.RunCommand

public class RunCommand
extends java.lang.Object

This class runs the simulation by providing the TCL script as input to NS2.

Author:
Kevin Bauer, Pushkar Sambhoos.

Field Summary
private  java.lang.String stdErr
          The outupt captured from standard error.
private  java.lang.String stdOut
          The output captured from standard output.
 
Constructor Summary
RunCommand(java.lang.String command)
          One-argument constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stdOut

private java.lang.String stdOut
The output captured from standard output.


stdErr

private java.lang.String stdErr
The outupt captured from standard error.

Constructor Detail

RunCommand

public RunCommand(java.lang.String command)
One-argument constructor. The command command is executed by Runtime.getRuntime().exec(command).

Parameters:
command - A command to be executed.
See Also:
Runtime