com.sun.electric.database.id
Class ArcProtoId

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

public class ArcProtoId
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Field Summary
 int chronIndex
          Unique index of this ArcProtoId in TechId.
 java.lang.String fullName
          ArcProto full name
 java.lang.String name
          ArcProto name
 TechId techId
          TechId of this ArcProtoId.
 
Method Summary
 ArcProto inDatabase(EDatabase database)
          Method to return the ArcProto representing ArcProtoId in the specified EDatabase.
 java.lang.String toString()
          Returns a printable version of this ArcProtoId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

techId

public final TechId techId
TechId of this ArcProtoId.


name

public final java.lang.String name
ArcProto name


fullName

public final java.lang.String fullName
ArcProto full name


chronIndex

public final int chronIndex
Unique index of this ArcProtoId in TechId.

Method Detail

inDatabase

public ArcProto inDatabase(EDatabase database)
Method to return the ArcProto representing ArcProtoId in the specified EDatabase.

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

toString

public java.lang.String toString()
Returns a printable version of this ArcProtoId.

Overrides:
toString in class java.lang.Object
Returns:
a printable version of this ArcProtoId.