|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<RouteElement>
com.sun.electric.tool.routing.Route
public class Route
Specifies a route to be created. Note that the order if items in a route is meaningless. The only thing that specifies order is the start and end of the route.
Author: gainsley
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
Route()
Constructs an empty route |
|
Route(java.util.Collection<RouteElement> c)
Constructs a route containing the elements of the passed route, in the order they are returned by the route iterator, and having the same start and end RouteElement (if Collection is a Route). |
Method Summary | |
---|---|
RouteElementPort |
getEnd()
Get the end of the Route |
RouteElementPort |
getStart()
Get the start of the Route |
boolean |
isRouteReversed()
True if the route is reversed, false if it is not reversed |
boolean |
replaceBisectPin(RouteElementPort bisectPin,
RouteElementPort replacement)
Attempts to replace the bisectPin by replacement. |
boolean |
replaceExistingRedundantPin(RouteElementPort pinRE,
RouteElementPort replacementRE,
PolyMerge stayInside)
Attempts to replace an existing pin that has been made redundant by some node in the route, such as a contact cut. |
boolean |
replacePin(RouteElementPort pin,
RouteElementPort replacement,
PolyMerge stayInside)
Attempts to replace pin with replacement. |
void |
reverseRoute()
Reverse the Route. |
void |
setEnd(RouteElementPort endRE)
Sets the end of the Route |
void |
setStart(RouteElementPort startRE)
Sets the start of the Route |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode |
Constructor Detail |
---|
public Route()
public Route(java.util.Collection<RouteElement> c)
Method Detail |
---|
public void setStart(RouteElementPort startRE)
public RouteElementPort getStart()
public void setEnd(RouteElementPort endRE)
public RouteElementPort getEnd()
public void reverseRoute()
public boolean isRouteReversed()
public boolean replacePin(RouteElementPort pin, RouteElementPort replacement, PolyMerge stayInside)
pin
- the pin to replacereplacement
- the replacementstayInside
- a polygonal area in which the new arc must reside (if not null).
public boolean replaceBisectPin(RouteElementPort bisectPin, RouteElementPort replacement)
bisectPin
- the port pin to replacereplacement
- the port pin to replace bisectPin with.
public boolean replaceExistingRedundantPin(RouteElementPort pinRE, RouteElementPort replacementRE, PolyMerge stayInside)
pinRE
- the pin to replacereplacementRE
- the replacementstayInside
- a polygonal area in which the new arc must reside (if not null).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |