public class GeneticPlacement extends PlacementFrame
PlacementFrame.PlacementNetwork, PlacementFrame.PlacementNode, PlacementFrame.PlacementParameter, PlacementFrame.PlacementPort
Modifier and Type | Field and Description |
---|---|
static int |
current_epoch_length |
static boolean |
IS_PROGRESS_LOGGING_ENABLED |
static Logger |
logger |
static long |
MAX_RUNTIME |
int |
maxRuntime |
PlacementFrame.PlacementParameter |
maxRuntimeParam |
PlacementFrame.PlacementParameter |
maxThreadsParam |
static PlacementNodeProxy[] |
nodeProxies |
int |
numThreads |
static double |
PlacementWidthRatio |
static java.io.PrintWriter |
PROGRESS_LOGGER |
static java.util.Random |
randomGenerator |
static long |
START_TIME |
numOfThreads, runtime
Constructor and Description |
---|
GeneticPlacement() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName()
Method to return the name of the placement algorithm (overridden by
actual Placement algorithms).
|
static java.util.List<PlacementFrame.PlacementNetwork> |
getAllNetworks() |
static int |
getNBR_OF_THREADS() |
static int |
getPOPULATION_SIZE() |
static java.util.Random |
getRandomGenerator() |
int |
getRUNTIME() |
static java.util.concurrent.ExecutorService |
getThreadPool() |
void |
runPlacement(java.util.List<PlacementFrame.PlacementNode> nodesToPlace,
java.util.List<PlacementFrame.PlacementNetwork> allNetworks,
java.util.List<PlacementAdapter.PlacementExport> exportsToPlace,
java.lang.String cellName,
Job job)
Method to do Placement (overridden by actual Placement algorithms).
|
static void |
setAllNetworks(java.util.List<PlacementFrame.PlacementNetwork> nets)
Deprecated.
Don't use. For Performance test Purpose only.
|
void |
setEpochLength(int epochLength) |
void |
setNbrOfThreads(int nbrOfThreads) |
void |
setParamterValues(int threads,
int runtime,
boolean debug) |
void |
setPopulationSizePerThread(int populationSize) |
getOriginalCell, getParameters, getRedispCell, getStandardCellSize, isFailure, setFailure, setOriginalCell, setParamterValues, setRedispCell
public PlacementFrame.PlacementParameter maxThreadsParam
public PlacementFrame.PlacementParameter maxRuntimeParam
public int numThreads
public int maxRuntime
public static java.util.Random randomGenerator
public static final double PlacementWidthRatio
public static PlacementNodeProxy[] nodeProxies
public static int current_epoch_length
public static long MAX_RUNTIME
public static long START_TIME
public static final boolean IS_PROGRESS_LOGGING_ENABLED
public static java.io.PrintWriter PROGRESS_LOGGER
public static final Logger logger
public void setParamterValues(int threads, int runtime, boolean debug)
public static java.util.Random getRandomGenerator()
public static java.util.concurrent.ExecutorService getThreadPool()
public java.lang.String getAlgorithmName()
PlacementFrame
getAlgorithmName
in class PlacementFrame
public void runPlacement(java.util.List<PlacementFrame.PlacementNode> nodesToPlace, java.util.List<PlacementFrame.PlacementNetwork> allNetworks, java.util.List<PlacementAdapter.PlacementExport> exportsToPlace, java.lang.String cellName, Job job)
PlacementFrame
runPlacement
in class PlacementFrame
nodesToPlace
- a list of all nodes that are to be placed.allNetworks
- a list of all networks that connect the nodes.cellName
- the name of the cell being placed.job
- the Job (for testing abort).public static void setAllNetworks(java.util.List<PlacementFrame.PlacementNetwork> nets)
nets
- public static java.util.List<PlacementFrame.PlacementNetwork> getAllNetworks()
public static int getNBR_OF_THREADS()
public static int getPOPULATION_SIZE()
public void setNbrOfThreads(int nbrOfThreads)
public void setEpochLength(int epochLength)
public void setPopulationSizePerThread(int populationSize)
public int getRUNTIME()