public class MappingSolution
extends java.lang.Object
Constructor and Description |
---|
MappingSolution()
Constructs an empty mapping solution object.
|
MappingSolution(boolean random)
Constructs a random mapping solution if random is
true
otherwise an empty mapping solution object. |
MappingSolution(int[][] mapping_matrix)
Constructs an mapping solution object given a new mapping matrix.
|
Modifier and Type | Method and Description |
---|---|
int |
getDestinationCoreWC() |
double |
getLaserPowerConsumption() |
int[][] |
getMapping_matrix() |
double |
getNoiseAttenuationWC() |
java.lang.String |
getReadableRepresentation() |
double |
getSignalAttenuationWC() |
double |
getSnrWC() |
int |
getSourceCoreWC() |
java.util.ArrayList<CommunicationTask> |
getTaskListWC() |
Tile |
getTileFromCore(int coreID,
NoCarchitecture arch)
Returns the tile where a certain core is mapped on
|
void |
printMappingMatrix()
Prints formatted representations of the mapping
matrix to a text-output stream.
|
void |
printOnConsole(javax.swing.JTextArea textArea)
Displays in a multi-line area of the GUI the mapping
solution including information calculated after the mapping evaluation.
|
void |
setDestinationCoreWC(int destinationCoreWC) |
void |
setLaserPowerConsumption(double laserPowerConsumption) |
void |
setMappingMatrix(int[][] mapping_matrix,
Application app,
NoCarchitecture arch)
Sets the mapping matrix.
|
void |
setNoiseAttenuationWC(double noiseAttenuationWC) |
void |
setSignalAttenuationWC(double signalAttenuationWC) |
void |
setSnrWC(double snrWC) |
void |
setSourceCoreWC(int sourceCoreWC) |
void |
setTaskListWC(java.util.ArrayList<CommunicationTask> taskListWC) |
public MappingSolution()
public MappingSolution(int[][] mapping_matrix)
mapping_matrix
- The mapping matrix.public MappingSolution(boolean random)
true
otherwise an empty mapping solution object.random
- true
for creating a random mapping solution;
false
for an empty mapping solution object.public Tile getTileFromCore(int coreID, NoCarchitecture arch)
coreID
- The core IDarch
- The NoC architecturepublic void printOnConsole(javax.swing.JTextArea textArea)
textArea
- the multi-line area used in the GUI to displays
the information about the application configuration loading.public java.lang.String getReadableRepresentation()
public void printMappingMatrix()
public int getSourceCoreWC()
public void setSourceCoreWC(int sourceCoreWC)
sourceCoreWC
- The core that is source of the worst case pathpublic int getDestinationCoreWC()
public void setDestinationCoreWC(int destinationCoreWC)
destinationCoreWC
- The core that is destination of the worst case pathpublic java.util.ArrayList<CommunicationTask> getTaskListWC()
public void setTaskListWC(java.util.ArrayList<CommunicationTask> taskListWC)
taskListWC
- The list of all the task that impact on the worst case SNRpublic double getSignalAttenuationWC()
public void setSignalAttenuationWC(double signalAttenuationWC)
signalAttenuationWC
- The signal attenuation in the worst case SNR pathpublic double getNoiseAttenuationWC()
public void setNoiseAttenuationWC(double noiseAttenuationWC)
noiseAttenuationWC
- The noise attenuation in the worst case SNR pathpublic double getSnrWC()
public void setSnrWC(double snrWC)
snrWC
- The worst case SNRpublic double getLaserPowerConsumption()
public void setLaserPowerConsumption(double laserPowerConsumption)
laserPowerConsumption
- The total laser power consumptionpublic int[][] getMapping_matrix()
public void setMappingMatrix(int[][] mapping_matrix, Application app, NoCarchitecture arch)
mapping_matrix
- The mapping matrix.app
- The applicationarch
- The architecture