lacam.container
Class ProcessDescriptor

java.lang.Object
  extended bylacam.container.ProcessDescriptor
Direct Known Subclasses:
RunDescriptor

public class ProcessDescriptor
extends java.lang.Object

Describes a process. This Class parses and contains all data needed to successfully create a process.

Author:
Dimitrij Zub

Constructor Summary
ProcessDescriptor(ClassDescriptor class_desc)
          Creates a ProcessDescriptor from a ClassDescriptor so that the classes default parameterlist can be created.
ProcessDescriptor(java.lang.String process_type, org.w3c.dom.NodeList process_list, int pos)
          Creates a ProcessDescriptor with the given process_type from a NodeList, where the Node describing the Process is at the given position.
 
Method Summary
 java.lang.Class getRepresentingClass()
           
 java.lang.String getType()
          Returns the type of this ProcessDescriptor
 org.w3c.dom.NodeList getXMLDescriptor()
          Returns the NodeList representing this ProcessDescriptor
 void initParameters()
          Initiates the parameterlist for this process
 java.lang.Object makeProcessableInstance()
          Creates a full functioning class for this process.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessDescriptor

public ProcessDescriptor(ClassDescriptor class_desc)
Creates a ProcessDescriptor from a ClassDescriptor so that the classes default parameterlist can be created.

Parameters:
class_desc - The ClassDescriptor to create the ProcessDescriptor from

ProcessDescriptor

public ProcessDescriptor(java.lang.String process_type,
                         org.w3c.dom.NodeList process_list,
                         int pos)
                  throws java.lang.IllegalArgumentException
Creates a ProcessDescriptor with the given process_type from a NodeList, where the Node describing the Process is at the given position.

Parameters:
process_type - The type of the process
process_list - The list containing several processes
pos - The position of the node representing this process
Method Detail

initParameters

public void initParameters()
Initiates the parameterlist for this process


getXMLDescriptor

public org.w3c.dom.NodeList getXMLDescriptor()
Returns the NodeList representing this ProcessDescriptor


getType

public java.lang.String getType()
Returns the type of this ProcessDescriptor


getRepresentingClass

public java.lang.Class getRepresentingClass()
Returns:
The Class contained by the ProcessDescriptor

makeProcessableInstance

public java.lang.Object makeProcessableInstance()
                                         throws java.lang.Exception
Creates a full functioning class for this process. The created class must implement the Process interface

Returns:
The instance of the class
Throws:
java.lang.Exception - If class could not be created.

toString

public java.lang.String toString()