|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.ImmutableElectricObject
com.sun.electric.database.ImmutableCell
public class ImmutableCell
Immutable class ImmutableCell represents a cell.
Field Summary | |
---|---|
CellId |
cellId
CellId of this ImmutableCell. |
long |
creationDate
The date this ImmutableCell was created. |
CellName |
groupName
The group name of this ImmutableCell. |
long |
revisionDate
The date this ImmutableCell was modified. |
TechId |
techId
This ImmutableCell's TechId. |
Fields inherited from class com.sun.electric.database.ImmutableElectricObject |
---|
flags |
Method Summary | |
---|---|
boolean |
busNamesAllowed()
Method to return true if bus names are allowed in this Cell |
void |
check()
Checks invariant of this ImmutableCell. |
boolean |
equalsExceptVariables(ImmutableElectricObject o)
Indicates whether fields of other ImmutableElectricObject are equal to fileds of this object. |
LibId |
getLibId()
Returns LibId of the Library to which this ImmutableCell belongs. |
int |
getNumParameters()
Method to return the number of Parameters on this ImmutableCell. |
Variable |
getParameter(int paramIndex)
Method to return the Parameter by its paramIndex. |
Variable |
getParameter(Variable.AttrKey key)
Method to return the Parameter on this ImmuatbleCell with a given key. |
java.util.Iterator<Variable> |
getParameters()
Method to return an Iterator over all Parameters on this ImmutableCell. |
int |
hashCodeExceptVariables()
Return a hash code value for fields of this object. |
static ImmutableCell |
newInstance(CellId cellId,
long creationDate)
Returns new ImmutableCell object. |
boolean |
paramsAllowed()
Tells if parameters are allowed on this ImmutableCell. |
java.lang.String |
toString()
|
ImmutableCell |
withCreationDate(long creationDate)
Returns ImmutableCell which differs from this ImmutableCell by creation date. |
ImmutableCell |
withFlags(int flags)
Returns ImmutableCell which differs from this ImmutableCell by flags. |
ImmutableCell |
withGroupName(CellName groupName)
Returns ImmutableCell which differs from this ImmutableCell by group name. |
ImmutableCell |
withoutParam(Variable.AttrKey key)
Returns ImmutableCell which differs from this ImmutableCell by removing parameter with the specified key. |
ImmutableCell |
withoutVariable(Variable.Key key)
Returns ImmutableCell which differs from this ImmutableCell by removing Variable with the specified key. |
ImmutableCell |
withoutVariables()
Returns ImmutableCell which differs from this ImmutableCell by removing all Variables. |
ImmutableCell |
withParam(Variable var)
Returns ImmutableCell which differs from this ImmutableCell by additional parameter. |
ImmutableCell |
withRevisionDate(long revisionDate)
Returns ImmutableCell which differs from this ImmutableCell by revision date. |
ImmutableCell |
withTechId(TechId techId)
Returns ImmutableCell which differs from this ImmutableCell by technology. |
ImmutableCell |
withVariable(Variable var)
Returns ImmutableCell which differs from this ImmutableCell by additional Variable. |
Methods inherited from class com.sun.electric.database.ImmutableElectricObject |
---|
getNumVariables, getVar, getVar, getVariables, getVarValue, searchVar, toVariableArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final CellId cellId
public final CellName groupName
public final long creationDate
public final long revisionDate
public final TechId techId
Method Detail |
---|
public static ImmutableCell newInstance(CellId cellId, long creationDate)
cellId
- id of this ImmutableCell.creationDate
- creation date of this ImmutableCell.
java.lang.NullPointerException
- if cellId or libId is null.public ImmutableCell withGroupName(CellName groupName)
groupName
- new group name.
java.lang.IllegalArgumentException
- if groupName is not schematic view and zero version.public ImmutableCell withCreationDate(long creationDate)
creationDate
- new creation date.
public ImmutableCell withRevisionDate(long revisionDate)
revisionDate
- new revision date.
public ImmutableCell withTechId(TechId techId)
techId
- new technology Id.
public ImmutableCell withFlags(int flags)
flags
- new flags.
public Variable getParameter(Variable.AttrKey key)
key
- the key of the Variable.
java.lang.NullPointerException
- if key is nullpublic java.util.Iterator<Variable> getParameters()
public int getNumParameters()
public Variable getParameter(int paramIndex)
paramIndex
- index of Parameter.
ArrayIndexOutOfBoundesException
- if paramIndex out of bounds.public ImmutableCell withParam(Variable var)
var
- additional Variable.
java.lang.NullPointerException
- if var is nullpublic ImmutableCell withoutParam(Variable.AttrKey key)
key
- Variable Key to remove.
java.lang.NullPointerException
- if key is nullpublic ImmutableCell withVariable(Variable var)
var
- additional Variable.
java.lang.NullPointerException
- if var is nullpublic ImmutableCell withoutVariable(Variable.Key key)
key
- Variable Key to remove.
java.lang.NullPointerException
- if key is nullpublic ImmutableCell withoutVariables()
public LibId getLibId()
public int hashCodeExceptVariables()
hashCodeExceptVariables
in class ImmutableElectricObject
public boolean equalsExceptVariables(ImmutableElectricObject o)
equalsExceptVariables
in class ImmutableElectricObject
o
- other ImmutableElectricObject.
public void check()
java.lang.AssertionError
- if invariant is broken.public boolean paramsAllowed()
public boolean busNamesAllowed()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |