com.sun.electric.tool.io
Class GDSLayers
java.lang.Object
com.sun.electric.tool.io.GDSLayers
public class GDSLayers
- extends java.lang.Object
Class to define GDS layer information.
Constructor Summary |
GDSLayers(java.util.List<java.lang.Integer> normalLayers,
int pinLayer,
int textLayer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EMPTY
public static final GDSLayers EMPTY
GDSLayers
public GDSLayers(java.util.List<java.lang.Integer> normalLayers,
int pinLayer,
int textLayer)
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.