public class CommunicationTask extends java.lang.Object implements java.lang.Comparable<CommunicationTask>
Constructor and Description |
---|
CommunicationTask(int id,
int srcCore,
int dstCore)
Constructs a communication task object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CommunicationTask arg0)
Compares this task with another communication task
in terms of crosstalk impact.
|
double |
getCrosstalk_impact() |
int |
getDstCore() |
int |
getId() |
int |
getSrcCore() |
void |
setCrosstalk_impact(double crosstalk_impact) |
public CommunicationTask(int id, int srcCore, int dstCore)
id
- The communication task IDsrcCore
- The ID of the source core of the communicationdstCore
- The ID of the destination core of the communicationpublic int compareTo(CommunicationTask arg0)
compareTo
in interface java.lang.Comparable<CommunicationTask>
public int getId()
public int getSrcCore()
public int getDstCore()
public double getCrosstalk_impact()
public void setCrosstalk_impact(double crosstalk_impact)
crosstalk_impact
- the crosstalk impact.