public class EDIFCellInst extends EDIFPropertyObject
EDIFCell
.
Created on: May 11, 2017Modifier and Type | Field and Description |
---|---|
static String |
BLACK_BOX_PROP |
static String |
BLACK_BOX_PROP_VERSAL |
static EDIFName |
DEFAULT_VIEWREF |
static byte[] |
EXPORT_CONST_CELLREF |
static byte[] |
EXPORT_CONST_CLOSE |
static byte[] |
EXPORT_CONST_CLOSE_NO_PROPS |
static byte[] |
EXPORT_CONST_CLOSE_WITH_PROPS |
static byte[] |
EXPORT_CONST_INSTANCE_BEGIN |
static byte[] |
EXPORT_CONST_LIBRARYREF |
static byte[] |
EXPORT_CONST_PROP_INDENT |
static byte[] |
EXPORT_CONST_VIEWREF |
EXPORT_CONST_OWNER_END, EXPORT_CONST_OWNER_START, EXPORT_CONST_PROP_END, EXPORT_CONST_PROP_START
EXPORT_CONST_RENAME_START
Constructor and Description |
---|
EDIFCellInst(EDIFCellInst inst,
EDIFCell parentCell)
Copy constructor.
|
EDIFCellInst(String name,
EDIFCell cellType,
EDIFCell parentCell) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
exportEDIF(OutputStream os,
EDIFWriteLegalNameCache<?> cache,
boolean stable) |
String |
getCellName() |
Collection<EDIFPort> |
getCellPorts() |
EDIFCell |
getCellType() |
EDIFPortInst |
getOrCreatePortInst(String name)
Gets the named EDIFPortInst or creates it (if correctly named) and returns
it.
|
EDIFCell |
getParentCell() |
EDIFPort |
getPort(String name)
Gets the port on the underlying cell type.
|
EDIFPortInst |
getPortInst(String name)
Gets the port instance on this cell by pin name (
EDIFPortInst.getName() ). |
Collection<EDIFPortInst> |
getPortInsts()
Gets the sorted ArrayList of EDIFPortInsts on this cell instance as a collection.
|
EDIFName |
getViewref() |
boolean |
isBlackBox() |
boolean |
isUniquified()
True if this cell instance is attached to a parent cell, and is the only instantiation of its cell.
|
void |
setCellType(EDIFCell cellType)
Modify the cell being instantiated and update port refs on portInsts
|
void |
setCellTypeRaw(EDIFCell cellType)
Forcibly modify the cell being instantiated without updating portInsts
|
void |
setParentCell(EDIFCell parent) |
void |
setViewref(EDIFName viewref) |
addProperty, addProperty, addProperty, addProperty, addProperty, createDuplicatePropertiesMap, exportEDIFProperties, getIOStandard, getPropertiesMap, getProperty, removeProperty, setPropertiesMap
compareTo, exportEDIFName, exportSomeEDIFName, getName, getNewMap, hashCode, toString
public static final EDIFName DEFAULT_VIEWREF
public static final String BLACK_BOX_PROP
public static final String BLACK_BOX_PROP_VERSAL
public static final byte[] EXPORT_CONST_INSTANCE_BEGIN
public static final byte[] EXPORT_CONST_VIEWREF
public static final byte[] EXPORT_CONST_CELLREF
public static final byte[] EXPORT_CONST_LIBRARYREF
public static final byte[] EXPORT_CONST_CLOSE_WITH_PROPS
public static final byte[] EXPORT_CONST_PROP_INDENT
public static final byte[] EXPORT_CONST_CLOSE
public static final byte[] EXPORT_CONST_CLOSE_NO_PROPS
public EDIFCellInst(EDIFCellInst inst, EDIFCell parentCell)
inst
- Prototype instance to copypublic EDIFName getViewref()
public void setViewref(EDIFName viewref)
viewref
- the viewref to setpublic EDIFPortInst getPortInst(String name)
EDIFPortInst.getName()
). The port
instances are stored in a sorted ArrayList, so worst case is O(log n).name
- Name of the port instance to get.public EDIFPortInst getOrCreatePortInst(String name)
name
- Name of the port instance to get.public EDIFPort getPort(String name)
name
- Name of the port to get.public Collection<EDIFPortInst> getPortInsts()
public EDIFCell getParentCell()
public void setParentCell(EDIFCell parent)
parent
- the parentCell to setpublic EDIFCell getCellType()
public Collection<EDIFPort> getCellPorts()
public String getCellName()
public void setCellTypeRaw(EDIFCell cellType)
cellType
- the cellType to setpublic void setCellType(EDIFCell cellType)
cellType
- the cellType to setpublic boolean isBlackBox()
public void exportEDIF(OutputStream os, EDIFWriteLegalNameCache<?> cache, boolean stable) throws IOException
IOException
public boolean isUniquified()