com.sun.electric.database.id
Interface NodeProtoId

All Known Implementing Classes:
CellId, PrimitiveNodeId

public interface NodeProtoId

The NodeProtoId interface identifies a type of NodeInst . It can be implemented as PrimitiveNode (for primitives from Technologies) or as CellId (for cells in Libraries).

The NodeProtoId is immutable and identifies NodeProto independently of threads. It differs from NodeProto objects, some of them (Cells) will be owned by threads in transactional database. PrimitiveNodes will be shared too, so they are both NodeProtoId and NodeProto.


Method Summary
 PortProtoId getPortId(int chronIndex)
          Returns PortProtoId in this node proto with specified chronological index.
 NodeProto inDatabase(EDatabase database)
          Method to return the NodeProto representing NodeProtoId in the specified EDatabase.
 boolean isIcon()
          Returns true if this NodeProtoId is Id of icon Cell.
 PortProtoId newPortId(java.lang.String externalId)
          Returns PortProtoId in this node proto with specified external id.
 

Method Detail

getPortId

PortProtoId getPortId(int chronIndex)
Returns PortProtoId in this node proto with specified chronological index.

Parameters:
chronIndex - chronological index of ExportId.
Returns:
PortProtoId whith specified chronological index.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if no such ExportId.

newPortId

PortProtoId newPortId(java.lang.String externalId)
Returns PortProtoId in this node proto with specified external id. If this external id was requested earlier, the previously created PortProtoId returned, otherwise the new PortProtoId is created.

Parameters:
externalId - external id of PortProtoId.
Returns:
PortProtoId with specified external id.
Throws:
java.lang.NullPointerException - if externalId is null.

isIcon

boolean isIcon()
Returns true if this NodeProtoId is Id of icon Cell.

Returns:
true if this NodeProtoId is Id of icon Cell.

inDatabase

NodeProto inDatabase(EDatabase database)
Method to return the NodeProto representing NodeProtoId in the specified EDatabase.

Parameters:
database - EDatabase where to get from.
Returns:
the NodeProto representing NodeProtoId in the specified database. This method is not properly synchronized.