|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.generator.layout.PortFilter
public abstract class PortFilter
A PortFilter is useful for removing certain PortInsts from the list of PortInsts on a Network. It is built into Jose because certain filters are commonly needed by Jose clients.
Nested Class Summary | |
---|---|
static class |
PortFilter.SchemPortFilter
Skip uninteresting elements of a schematic. |
Field Summary | |
---|---|
static PortFilter |
SCHEMATIC
This constant object can be invoked on the return value of Network.getPorts() omit PortInsts of the schematic elements that are typically uninteresting to Jose clients reading schematics. |
Constructor Summary | |
---|---|
PortFilter()
|
Method Summary | |
---|---|
java.util.Iterator<PortInst> |
filter(java.util.Iterator<PortInst> ports)
Remove selected PortInsts from the input list |
abstract boolean |
skipPort(PortInst pi)
Should we filter out this PortInst? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PortFilter SCHEMATIC
Network net = // application initializes this variable
Iterator ports = PortFilter.SCHEMATIC.filter(net.getPorts());
while (ports.hasNext()) {
// application only looks at "useful" schematics ports
}
Constructor Detail |
---|
public PortFilter()
Method Detail |
---|
public abstract boolean skipPort(PortInst pi)
public final java.util.Iterator<PortInst> filter(java.util.Iterator<PortInst> ports)
ports
- an iterator over a collection of PortInsts. Note
that after filter() is called ports.hasNext()==false;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |