com.ohrasys.cad.gds
Class GDSRecordFactory

java.lang.Object
  extended by com.ohrasys.cad.gds.GDSRecordFactory

public class GDSRecordFactory
extends java.lang.Object

Create a specific GDSII record based on the record type of the GDSRecord argument.

Since:
1.5

Constructor Summary
GDSRecordFactory()
           
 
Method Summary
static GDSRecord expandRecord(GDSRecord rec)
          Expands an unidentified GDSRecord to a specifc type of GDSII record based on the record type.
 java.lang.String toString()
          Returns a string representation of this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GDSRecordFactory

public GDSRecordFactory()
Method Detail

expandRecord

public static GDSRecord expandRecord(GDSRecord rec)
                              throws GDSRecordException
Expands an unidentified GDSRecord to a specifc type of GDSII record based on the record type.

Parameters:
rec - The record to expand.
Returns:
A specific GDSII record with of the appropriate type.
Throws:
GDSRecordException - If the record is not a valid GDSII record.

toString

public java.lang.String toString()
Returns a string representation of this class

Overrides:
toString in class java.lang.Object
Returns:
The physical address of this instance