com.sun.electric.database.id
Class LayerId

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

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

The LayerId immutable class identifies layer independently of threads. It differs from Layer 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 LayerId in TechId.
 java.lang.String fullName
          Layer full name
 java.lang.String name
          Layer name
 TechId techId
          TechId of this LayerId.
 
Method Summary
 Layer inDatabase(EDatabase database)
          Method to return the Layer representing LayerId in the specified EDatabase.
 java.lang.String toString()
          Returns a printable version of this LayerId.
 
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 LayerId.


name

public final java.lang.String name
Layer name


fullName

public final java.lang.String fullName
Layer full name


chronIndex

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

Method Detail

inDatabase

public Layer inDatabase(EDatabase database)
Method to return the Layer representing LayerId in the specified EDatabase.

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

toString

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

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