public abstract class CustomMetric
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PlacementFrame.PlacementNetwork> |
allNetworks |
protected java.util.List<PlacementFrame.PlacementNode> |
nodesToPlace |
Constructor and Description |
---|
CustomMetric(java.util.List<PlacementFrame.PlacementNode> nodesToPlace,
java.util.List<PlacementFrame.PlacementNetwork> allNetworks) |
Modifier and Type | Method and Description |
---|---|
abstract double |
compute() |
abstract java.lang.String |
getMetricName() |
protected java.util.List<java.awt.geom.Point2D.Double[]> |
getPositionsOfPorts(java.util.List<PlacementFrame.PlacementNetwork> placementNets)
Method returns the absolute position of all ports in the list
placementNets.
|
java.lang.String |
toString() |
protected java.util.List<PlacementFrame.PlacementNode> nodesToPlace
protected java.util.List<PlacementFrame.PlacementNetwork> allNetworks
public CustomMetric(java.util.List<PlacementFrame.PlacementNode> nodesToPlace, java.util.List<PlacementFrame.PlacementNetwork> allNetworks)
public abstract double compute()
public abstract java.lang.String getMetricName()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.util.List<java.awt.geom.Point2D.Double[]> getPositionsOfPorts(java.util.List<PlacementFrame.PlacementNetwork> placementNets)
placementNets
-