|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<TechId,Technology>
com.sun.electric.technology.TechPool
public class TechPool
A customized Map from TechId to Technolgy. All TechIds must belong to same IdManager.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
IdManager |
idManager
|
Constructor Summary | |
---|---|
TechPool(java.util.Collection<Technology> technologies)
Constructs TechPool from Collection of technologies All technologies must belong to the same IdManager |
|
TechPool(IdManager idManager)
Constructs empty TechPool |
Method Summary | |
---|---|
void |
check()
Checks invariants in this TechPool. |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
void |
correctSizesToDisk(java.util.List<CellRevision> cells,
Version version,
java.util.Map<Setting,java.lang.Object> projectSettings,
boolean isJelib,
boolean keepExtendOverMin)
|
java.util.Set<java.util.Map.Entry<TechId,Technology>> |
entrySet()
|
boolean |
equals(java.lang.Object o)
|
boolean |
equals(TechPool that)
Tests that two TechPools contains the same set of Tehnologies |
Technology |
get(java.lang.Object key)
|
ArcProto |
getArcProto(ArcProtoId arcProtoId)
Get ArcProto by ArcProtoId ArcProtoId must belong to same IdManager as TechPool |
Artwork |
getArtwork()
Returns Artwork technology in this database |
Generic |
getGeneric()
Returns Generic technology in this database |
PrimitiveNode |
getPrimitiveNode(PrimitiveNodeId primitiveNodeId)
Get PrimitiveNode by PrimitiveNodeId PrimitiveNodeId must belong to same IdManager as TechPool |
PrimitivePort |
getPrimitivePort(PrimitivePortId primitivePortId)
Get PrimitivePort by PrimitivePortId PrimitivePortId must belong to same IdManager as TechPool |
Schematics |
getSchematics()
Returns Schematic technology in this database |
Technology |
getTech(TechId techId)
Get Technology by TechId TechId must belong to same IdManager as TechPool |
static TechPool |
read(IdReader reader)
Reads TechPool from IdReader |
TechPool |
restrict(java.util.BitSet techUsed)
Returns restriction of this TechPool to specified subset of TechIds |
TechPool |
restrict(java.util.BitSet techUsed,
TechPool candidatePool)
Returns restriction of this TechPool to specified subset of TechIds. |
TechPool |
withTech(Technology tech)
Returns new TechPool which differs from this TechPool by adding new technology |
void |
write(IdWriter writer)
Writes this TechPool to IdWriter |
Methods inherited from class java.util.AbstractMap |
---|
clear, clone, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final IdManager idManager
Constructor Detail |
---|
public TechPool(IdManager idManager)
idManager
- pool's IdManagerpublic TechPool(java.util.Collection<Technology> technologies)
technologies
- Collection of technologies in the PoolMethod Detail |
---|
public TechPool restrict(java.util.BitSet techUsed, TechPool candidatePool)
techUsed
- contains techIndex of those TechIds which are in subsetcandidatePool
- a candidate TechPool to save allocation
public TechPool restrict(java.util.BitSet techUsed)
techUsed
- contains techIndex of those TechIds which are in subset
public TechPool withTech(Technology tech)
tech
- Technology to add
public Technology getTech(TechId techId)
techId
- TechId to find
java.lang.IllegalArgumentException
- if TechId is not from this IdManagerpublic ArcProto getArcProto(ArcProtoId arcProtoId)
arcProtoId
- ArcProtoId to find
java.lang.IllegalArgumentException
- if TechId is not from this IdManagerpublic PrimitiveNode getPrimitiveNode(PrimitiveNodeId primitiveNodeId)
primitiveNodeId
- PrimitiveNodeId to find
java.lang.IllegalArgumentException
- if TechId is not from this IdManagerpublic PrimitivePort getPrimitivePort(PrimitivePortId primitivePortId)
primitivePortId
- PrimitivePortId to find
java.lang.IllegalArgumentException
- if TechId is not from this IdManagerpublic void correctSizesToDisk(java.util.List<CellRevision> cells, Version version, java.util.Map<Setting,java.lang.Object> projectSettings, boolean isJelib, boolean keepExtendOverMin)
public Artwork getArtwork()
public Generic getGeneric()
public Schematics getSchematics()
public boolean equals(TechPool that)
that
- second TechPool
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<TechId,Technology>
containsKey
in class java.util.AbstractMap<TechId,Technology>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<TechId,Technology>
containsValue
in class java.util.AbstractMap<TechId,Technology>
public Technology get(java.lang.Object key)
get
in interface java.util.Map<TechId,Technology>
get
in class java.util.AbstractMap<TechId,Technology>
public java.util.Set<java.util.Map.Entry<TechId,Technology>> entrySet()
entrySet
in interface java.util.Map<TechId,Technology>
entrySet
in class java.util.AbstractMap<TechId,Technology>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map<TechId,Technology>
equals
in class java.util.AbstractMap<TechId,Technology>
public void write(IdWriter writer) throws java.io.IOException
writer
- IdWriter
java.io.IOException
public static TechPool read(IdReader reader) throws java.io.IOException
reader
- IdReader
java.io.IOException
public void check()
java.lang.AssertionError
- if invariants are not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |