com.sun.electric.database.id
Class PrimitivePortId

java.lang.Object
  extended by com.sun.electric.database.id.PortProtoId
      extended by com.sun.electric.database.id.PrimitivePortId
All Implemented Interfaces:
java.io.Serializable

public class PrimitivePortId
extends PortProtoId

The PrimitivePortId immutable class identifies primitive port proto independently of threads. It differs from PrimitivePort objects, which will be owned by threads in transactional database. This class is thread-safe except inCurrentThread method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.electric.database.id.PortProtoId
chronIndex, externalId, parentId
 
Method Summary
 java.lang.String getName(Snapshot snapshot)
          Method to return the name of this PortProtoId in a specified Snapshot.
 PrimitiveNodeId getParentId()
          Method to return the parent NodeProtoId of this PortProtoId.
 PrimitivePort inDatabase(EDatabase database)
          Method to return the PortProto representing PortProtoId in the specified EDatabase.
 PrimitivePort inSnapshot(Snapshot snapshot)
          Method to return the PrimitivePort representing PrimitivePortId in the specified Snapshot.
 
Methods inherited from class com.sun.electric.database.id.PortProtoId
getChronIndex, getExternalId, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getParentId

public PrimitiveNodeId getParentId()
Method to return the parent NodeProtoId of this PortProtoId.

Overrides:
getParentId in class PortProtoId
Returns:
the parent NodeProtoId of this PortProtoId.

getName

public java.lang.String getName(Snapshot snapshot)
Method to return the name of this PortProtoId in a specified Snapshot.

Specified by:
getName in class PortProtoId
Parameters:
snapshot - snapshot for name search.
Returns:
the name of this PortProtoId.

inSnapshot

public PrimitivePort inSnapshot(Snapshot snapshot)
Method to return the PrimitivePort representing PrimitivePortId in the specified Snapshot.

Parameters:
snapshot - Snapshot where to get from.
Returns:
the PrimitivePort representing PrimitivePortId in the specified snapshot.

inDatabase

public PrimitivePort inDatabase(EDatabase database)
Method to return the PortProto representing PortProtoId in the specified EDatabase.

Specified by:
inDatabase in class PortProtoId
Parameters:
database - EDatabase where to get from.
Returns:
the PortProto representing PortProtoId in the specified database. This method is not properly synchronized.