com.sun.electric.tool.io
Class GDSLayers

java.lang.Object
  extended by com.sun.electric.tool.io.GDSLayers

public class GDSLayers
extends java.lang.Object

Class to define GDS layer information.


Field Summary
static GDSLayers EMPTY
           
 
Constructor Summary
GDSLayers(java.util.List<java.lang.Integer> normalLayers, int pinLayer, int textLayer)
           
 
Method Summary
 boolean equals(GDSLayers other)
          Method to determine if the numbers in this GDSLayers are the same as another.
 java.lang.Integer getFirstLayer()
           
 java.util.Iterator<java.lang.Integer> getLayers()
           
 int getNumLayers()
           
 int getPinLayer()
           
 int getTextLayer()
           
static GDSLayers parseLayerString(java.lang.String string)
          Method to parse the GDS layer string and get the layer numbers and types (plain, text, and pin).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final GDSLayers EMPTY
Constructor Detail

GDSLayers

public GDSLayers(java.util.List<java.lang.Integer> normalLayers,
                 int pinLayer,
                 int textLayer)
Method Detail

getNumLayers

public int getNumLayers()

getLayers

public java.util.Iterator<java.lang.Integer> getLayers()

getFirstLayer

public java.lang.Integer getFirstLayer()

getPinLayer

public int getPinLayer()

getTextLayer

public int getTextLayer()

equals

public boolean equals(GDSLayers other)
Method to determine if the numbers in this GDSLayers are the same as another.

Parameters:
other - the other GDSLayers being compared with this.
Returns:
true if they have the same values.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parseLayerString

public static GDSLayers parseLayerString(java.lang.String string)
Method to parse the GDS layer string and get the layer numbers and types (plain, text, and pin).

Parameters:
string - the GDS layer string, of the form [NUM[/TYP]]*[,NUM[/TYP]t][,NUM[/TYP]p]
Returns:
a GDSLayers object with the values filled-in.