public class ImmutableCell extends ImmutableElectricObject
Modifier and Type | Field and Description |
---|---|
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.
|
flags
Modifier and Type | Method and Description |
---|---|
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.
|
getNumVariables, getVar, getVar, getVariables, getVarValue, searchVar, toVariableArray
public final CellId cellId
public final CellName groupName
public final long creationDate
public final long revisionDate
public final TechId techId
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