com.sun.electric.database.id
Class ExportId

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

public final class ExportId
extends PortProtoId

The ExportId immutable class identifies a type of PortInst independently of threads. It differs from Export 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.
 CellId getParentId()
          Method to return the parent NodeProtoId of this ExportId.
 Export inDatabase(EDatabase database)
          Method to return the Export representing ExportId in the specified EDatabase.
 ImmutableExport inSnapshot(Snapshot snapshot)
          Method to return the ImmutableExport representing ExportId 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 CellId getParentId()
Method to return the parent NodeProtoId of this ExportId.

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

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 ImmutableExport inSnapshot(Snapshot snapshot)
Method to return the ImmutableExport representing ExportId in the specified Snapshot.

Parameters:
snapshot - Snapshot where to get from.
Returns:
the ImmutableExport representing ExportId in the specified snapshot.

inDatabase

public Export inDatabase(EDatabase database)
Method to return the Export representing ExportId in the specified EDatabase.

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