ist.palcom.assembly.commandline
Class CommandLineAssembler

java.lang.Object
  extended by ist.palcom.device.AbstractDevice
      extended by ist.palcom.device.AbstractUDPDevice
          extended by ist.palcom.assembly.commandline.CommandLineAssembler
All Implemented Interfaces:
java.lang.Runnable

public class CommandLineAssembler
extends AbstractUDPDevice

Simple commandline-based assembler, running .ass scripts. Takes commands from stdin as well as auto-loading any .ass file(s) given as parameter.


Field Summary
 
Fields inherited from class ist.palcom.device.AbstractDevice
context, scheduler
 
Constructor Summary
CommandLineAssembler(java.lang.String[] assemblies)
           
CommandLineAssembler(java.lang.String[] assemblies, DeviceID deviceID)
           
 
Method Summary
protected  void initDevice()
          Initialize the device.
 void loadAssembly(PRDAssemblyVer ass)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class ist.palcom.device.AbstractUDPDevice
createDeviceContext
 
Methods inherited from class ist.palcom.device.AbstractDevice
getDeviceContext, getDeviceInfo, getName, getRootPath, run, safePutEvent, setHeartBeatPeriod, stop, stopDevice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineAssembler

public CommandLineAssembler(java.lang.String[] assemblies,
                            DeviceID deviceID)
                     throws java.lang.Exception
Throws:
java.lang.Exception

CommandLineAssembler

public CommandLineAssembler(java.lang.String[] assemblies)
                     throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

initDevice

protected void initDevice()
                   throws java.io.IOException
Description copied from class: AbstractDevice
Initialize the device. Called from a PalcomThread. Here the actual setup is done. Subclasses override this method, and call super.initDevice from there.

Overrides:
initDevice in class AbstractDevice
Throws:
java.io.IOException

loadAssembly

public void loadAssembly(PRDAssemblyVer ass)