com.sun.electric.tool.routing
Class Router.ArcWidth

java.lang.Object
  extended by com.sun.electric.tool.routing.Router.ArcWidth
Enclosing class:
Router

public static class Router.ArcWidth
extends java.lang.Object


Constructor Summary
Router.ArcWidth(int preferredAngle)
           
 
Method Summary
 void findArcWidthToUse(ElectricObject routeObj, ArcProto ap)
           
 void findArcWidthToUse(PortInst pi, ArcProto ap)
          Get arc width to use to connect to PortInst pi.
 void findArcWidthToUse(Route route, ArcProto ap)
          Get arc width to use by searching for largest arc of passed type connected to any elements in the route.
 void findArcWidthToUse(RouteElement re, ArcProto ap)
          Get arc width to use to connect to RouteElement re.
 void findArcWidthToUse(RouteElementPort re, ArcProto ap)
          Get largest arc width of newArc RouteElements attached to this RouteElement.
 double getDefaultWidth()
           
 double getPreferredWidth()
           
 double getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Router.ArcWidth

public Router.ArcWidth(int preferredAngle)
Method Detail

getPreferredWidth

public double getPreferredWidth()

getDefaultWidth

public double getDefaultWidth()

getWidth

public double getWidth()

findArcWidthToUse

public void findArcWidthToUse(Route route,
                              ArcProto ap)
Get arc width to use by searching for largest arc of passed type connected to any elements in the route.

Parameters:
route - the route to be searched
ap - the arc type

findArcWidthToUse

public void findArcWidthToUse(ElectricObject routeObj,
                              ArcProto ap)

findArcWidthToUse

public void findArcWidthToUse(PortInst pi,
                              ArcProto ap)
Get arc width to use to connect to PortInst pi. Arc type is ap. Uses the largest width of arc type ap already connected to pi, or the default width of ap if none found.

You may specify pi as null, in which case it just returns ap.getDefaultLambdaFullWidth().

Parameters:
pi - the PortInst to connect to
ap - the Arc type to connect with

findArcWidthToUse

public void findArcWidthToUse(RouteElement re,
                              ArcProto ap)
Get arc width to use to connect to RouteElement re. Uses largest width of arc already connected to re.

Parameters:
re - the RouteElement to connect to
ap - the arc type (for default width)

findArcWidthToUse

public void findArcWidthToUse(RouteElementPort re,
                              ArcProto ap)
Get largest arc width of newArc RouteElements attached to this RouteElement. If none present returns -1.

Note that these width values should have been pre-adjusted for the arc width offset, so these values have had the offset subtracted away.