|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.technology.Layer
public class Layer
The Layer class defines a single layer of material, out of which NodeInst and ArcInst objects are created. The Layers are defined by the PrimitiveNode and ArcProto classes, and are used in the generation of geometry. In addition, layers have extra information that is used for output and behavior.
Nested Class Summary | |
---|---|
static class |
Layer.Function
Function is a typesafe enum class that describes the function of a layer. |
Field Summary | |
---|---|
static double |
DEFAULT_DISTANCE
|
static double |
DEFAULT_FACTOR
|
static java.lang.String |
DEFAULT_MODE
|
static double |
DEFAULT_THICKNESS
|
static com.sun.electric.technology.Layer.LayerSortByName |
layerSortByName
A comparator object for sorting Layers by their name. |
Method Summary | |
---|---|
double |
getAreaCoverage()
Method to return the minimu area coverage that the layer must reach in the technology. |
Pref |
getBooleanPref(java.lang.String what,
java.util.HashMap<Layer,Pref> map,
boolean factory)
Method to get a boolean preference for this Layer and a specific purpose. |
double |
getCapacitance()
Method to return the capacitance for this layer. |
Setting |
getCapacitanceSetting()
Returns project Setting to tell the capacitance for this Layer. |
java.lang.String |
getCIFLayer()
Method to return the CIF name of this layer. |
Setting |
getCIFLayerSetting()
Returns project Setting to tell the CIF name of this Layer. |
double |
getDepth()
Method to calculate Z value of the upper part of the layer. |
double |
getDistance()
Method to return the distance of this layer. |
Pref |
getDoublePref(java.lang.String what,
java.util.HashMap<Layer,Pref> map,
double factory)
Method to get a double-precision preference for this Layer and a specific purpose. |
java.lang.String |
getDXFLayer()
Method to return the DXF name of this layer. |
Setting |
getDXFLayerSetting()
Returns project Setting to tell the DXF name of this Layer. |
double |
getEdgeCapacitance()
Method to return the edge capacitance for this layer. |
Setting |
getEdgeCapacitanceSetting()
Returns project Setting to tell the edge capacitance for this Layer. |
Layer.Function |
getFunction()
Method to return the Function of this Layer. |
int |
getFunctionExtras()
Method to return the Function "extras" of this Layer. |
EGraphics |
getGraphics()
Method to return the graphics description of this Layer. |
int |
getIndex()
Method to return the index of this Layer. |
Pref |
getIntegerPref(java.lang.String what,
java.util.HashMap<Layer,Pref> map,
int factory)
Method to get an integer preference for this Layer and a specific purpose. |
java.lang.String |
getName()
Method to return the name of this Layer. |
Layer |
getNonPseudoLayer()
Method to return the non-pseudo layer associated with this pseudo-Layer. |
Layer |
getPseudoLayer()
Method to return the pseudo layer associated with this real-Layer. |
PrimitiveNode |
getPureLayerNode()
Method to return the Pure Layer Node associated with this Layer. |
double |
getResistance()
Method to return the resistance for this layer. |
Setting |
getResistanceSetting()
Returns project Setting to tell the resistance for this Layer. |
java.lang.String |
getSkillLayer()
Method to return the Skill name of this layer. |
Setting |
getSkillLayerSetting()
Returns project Setting to tell the Skill name of this Layer. |
Pref |
getStringPref(java.lang.String what,
java.util.HashMap<Layer,Pref> map,
java.lang.String factory)
Method to get a string preference for this Layer and a specific purpose. |
Technology |
getTechnology()
Method to return the Technology of this Layer. |
double |
getThickness()
Method to return the thickness of this layer. |
double |
getTransparencyFactor()
Method to return the transparency factor of this layer as a string. |
java.lang.String |
getTransparencyMode()
Method to return the transparency mode of this layer as a string. |
boolean |
isDiffusionLayer()
Method to determine if the layer function corresponds to a diffusion layer. |
boolean |
isDimmed()
Method to tell whether this Layer is dimmed. |
boolean |
isNonElectrical()
Method to tell whether this layer function is non-electrical. |
boolean |
isPseudoLayer()
Method to return true if this is pseudo-Layer. |
boolean |
isVisible()
Method to tell whether this Layer is visible. |
boolean |
isVTImplantLayer()
Method to determine if the layer corresponds to a VT layer. |
Layer |
makePseudo()
Method to create a pseudo-layer for this Layer with a standard name "Pseudo-XXX". |
PrimitiveNode |
makePureLayerNode(java.lang.String nodeName,
double size,
Poly.Type style,
java.lang.String portName,
ArcProto... connections)
Method to make the Pure Layer Node associated with this Layer. |
PrimitiveNode |
makePureLayerNode(java.lang.String nodeName,
double size,
Technology.Distance xmlSize,
Poly.Type style,
java.lang.String portName,
ArcProto... connections)
Method to make the Pure Layer Node associated with this Layer. |
static Layer |
newInstance(Technology tech,
java.lang.String name,
EGraphics graphics)
Method to create a new layer with the given name and graphics. |
static Layer |
newInstanceFree(Technology tech,
java.lang.String name,
EGraphics graphics)
Method to create a new layer with the given name and graphics. |
static void |
preserveVisibility()
Method called when the program exits to preserve any changes to the layer visibility. |
void |
setDimmed(boolean dimmed)
Method to set whether this Layer is dimmed. |
void |
setDistance(double distance)
Method to set the distance of this layer. |
void |
setFactory3DInfo(double thickness,
double distance,
java.lang.String mode,
double factor)
Method to set the 3D distance and thickness of this Layer. |
void |
setFactoryAreaCoverage(double area)
Method to set the minimum area to cover with this Layer in a particular cell. |
void |
setFactoryAreaCoverageInfo(double area)
Methot to set minimu area coverage that the layer must reach in the technology. |
void |
setFactoryCIFLayer(java.lang.String cifLayer)
Method to set the factory-default CIF name of this Layer. |
void |
setFactoryDXFLayer(java.lang.String dxfLayer)
Method to set the factory-default DXF name of this Layer. |
void |
setFactoryParasitics(double resistance,
double capacitance,
double edgeCapacitance)
Method to set the Spice parasitics for this Layer. |
void |
setFactorySkillLayer(java.lang.String skillLayer)
Method to set the factory-default Skill name of this Layer. |
void |
setFunction(Layer.Function function)
Method to set the Function of this Layer. |
void |
setFunction(Layer.Function function,
int functionExtras)
Method to set the Function of this Layer when the function is complex. |
void |
setFunction(Layer.Function function,
int functionExtras,
boolean pseudo)
Method to set the Function of this Layer when the function is complex. |
void |
setIndex(int index)
Method to set the index of this Layer. |
void |
setPureLayerNode(PrimitiveNode pln)
Method to set the Pure Layer Node associated with this Layer. |
void |
setThickness(double thickness)
Method to set the thickness of this layer. |
void |
setTransparencyFactor(double factor)
Method to set the transparency factor of this layer. |
void |
setTransparencyMode(java.lang.String mode)
Method to set the transparency mode of this layer. |
void |
setVisible(boolean newVis)
Method to set whether this Layer is visible. |
java.lang.String |
toString()
Returns a printable version of this Layer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_THICKNESS
public static final double DEFAULT_DISTANCE
public static final java.lang.String DEFAULT_MODE
public static final double DEFAULT_FACTOR
public static final com.sun.electric.technology.Layer.LayerSortByName layerSortByName
Method Detail |
---|
public static Layer newInstance(Technology tech, java.lang.String name, EGraphics graphics)
tech
- the Technology that this layer belongs to.name
- the name of the layer.graphics
- the appearance of the layer.
public static Layer newInstanceFree(Technology tech, java.lang.String name, EGraphics graphics)
name
- the name of the layer.graphics
- the appearance of the layer.
public Layer makePseudo()
public java.lang.String getName()
public int getIndex()
public void setIndex(int index)
index
- the index of this Layer.public Technology getTechnology()
public EGraphics getGraphics()
public void setFunction(Layer.Function function)
function
- the Function of this Layer.public void setFunction(Layer.Function function, int functionExtras)
function
- the Function of this Layer.functionExtras
- extra bits to describe the Function of this Layer.public void setFunction(Layer.Function function, int functionExtras, boolean pseudo)
function
- the Function of this Layer.functionExtras
- extra bits to describe the Function of this Layer.pseudo
- true if the Layer is pseudo-layerpublic Layer.Function getFunction()
public int getFunctionExtras()
public void setPureLayerNode(PrimitiveNode pln)
pln
- the Pure Layer PrimitiveNode to use for this Layer.public PrimitiveNode makePureLayerNode(java.lang.String nodeName, double size, Poly.Type style, java.lang.String portName, ArcProto... connections)
nodeName
- the name of the PrimitiveNode.
Primitive names may not contain unprintable characters, spaces, tabs, a colon (:), semicolon (;) or curly braces ({}).size
- the width and the height of the PrimitiveNode.style
- the Poly.Type this PrimitiveNode will generate (polygon, cross, etc.).
public PrimitiveNode makePureLayerNode(java.lang.String nodeName, double size, Technology.Distance xmlSize, Poly.Type style, java.lang.String portName, ArcProto... connections)
nodeName
- the name of the PrimitiveNode.
Primitive names may not contain unprintable characters, spaces, tabs, a colon (:), semicolon (;) or curly braces ({}).size
- the width and the height of the PrimitiveNode.xmlSize
- expression for default size of this pure layer node depending on tech parametersstyle
- the Poly.Type this PrimitiveNode will generate (polygon, cross, etc.).
public PrimitiveNode getPureLayerNode()
public boolean isNonElectrical()
public boolean isDiffusionLayer()
public boolean isVTImplantLayer()
public boolean isPseudoLayer()
public Layer getPseudoLayer()
public Layer getNonPseudoLayer()
public boolean isVisible()
public void setVisible(boolean newVis)
newVis
- true if this Layer is to be visible.public static void preserveVisibility()
public boolean isDimmed()
public void setDimmed(boolean dimmed)
dimmed
- true if this Layer is to be dimmed.public Pref getStringPref(java.lang.String what, java.util.HashMap<Layer,Pref> map, java.lang.String factory)
what
- the purpose of the preference.map
- a Map of preferences for the purpose.factory
- the factory default value for this Layer/purpose.
public Pref getBooleanPref(java.lang.String what, java.util.HashMap<Layer,Pref> map, boolean factory)
what
- the purpose of the preference.map
- a Map of preferences for the purpose.factory
- the factory default value for this Layer/purpose.
public Pref getDoublePref(java.lang.String what, java.util.HashMap<Layer,Pref> map, double factory)
what
- the purpose of the preference.map
- a Map of preferences for the purpose.factory
- the factory default value for this Layer/purpose.
public Pref getIntegerPref(java.lang.String what, java.util.HashMap<Layer,Pref> map, int factory)
what
- the purpose of the preference.map
- a Map of preferences for the purpose.factory
- the factory default value for this Layer/purpose.
public void setFactory3DInfo(double thickness, double distance, java.lang.String mode, double factor)
thickness
- the thickness of this layer.distance
- the distance of this layer above the ground plane (silicon).
Negative values represent layes in silicon like p++, p well, etc.mode
- factor
- public java.lang.String getTransparencyMode()
public void setTransparencyMode(java.lang.String mode)
mode
- the transparency mode of this layer.public double getTransparencyFactor()
public void setTransparencyFactor(double factor)
factor
- the transparency factor of this layer.public double getDistance()
public void setDistance(double distance)
distance
- the distance of this layer above the ground plane.public double getDepth()
public double getThickness()
public void setThickness(double thickness)
thickness
- the thickness of this layer.public void setFactoryCIFLayer(java.lang.String cifLayer)
cifLayer
- the factory-default CIF name of this Layer.public java.lang.String getCIFLayer()
public Setting getCIFLayerSetting()
public void setFactoryDXFLayer(java.lang.String dxfLayer)
dxfLayer
- the factory-default DXF name of this Layer.public java.lang.String getDXFLayer()
public Setting getDXFLayerSetting()
public void setFactorySkillLayer(java.lang.String skillLayer)
skillLayer
- the factory-default Skill name of this Layer.public java.lang.String getSkillLayer()
public Setting getSkillLayerSetting()
public void setFactoryParasitics(double resistance, double capacitance, double edgeCapacitance)
resistance
- the resistance of this Layer.capacitance
- the capacitance of this Layer.edgeCapacitance
- the edge capacitance of this Layer.public double getResistance()
public Setting getResistanceSetting()
public double getCapacitance()
public Setting getCapacitanceSetting()
public double getEdgeCapacitance()
public Setting getEdgeCapacitanceSetting()
public void setFactoryAreaCoverage(double area)
area
- the minimum area coverage of this layer.public double getAreaCoverage()
public void setFactoryAreaCoverageInfo(double area)
area
- the minimum area coverage (in percentage).public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |