public class NetworkLink extends PlatformComponentProp
Modifier and Type | Field and Description |
---|---|
private Cluster |
destinationCluster
Destination cluster of the network link.
|
private int |
destinationPort
Destination port number of the network link.
|
private Processor |
destinationProcessor
Destination processor of the network link.
|
private int |
latency
Latency of the network link.
|
private Cluster |
sourceCluster
Source cluster of the network link.
|
private int |
sourcePort
Source port number of the network link.
|
private Processor |
sourceProcessor
Source processor of the network link.
|
Constructor and Description |
---|
NetworkLink(java.lang.String name,
int id,
int sourcePort,
int destinationPort,
int latency,
Processor srcProcessor,
Processor dstProcessor,
Cluster srcCluster,
Cluster dstCluster)
Initializes the Network Link component of the platform.
|
Modifier and Type | Method and Description |
---|---|
Cluster |
getDestinationCluster()
Gets the destination cluster of the network link.
|
int |
getDestinationPort()
Gets the destination port of the network link
|
Processor |
getDestinationProcessor()
Gets the destination processor of the network link.
|
int |
getLatency()
Gets the latency of the network link.
|
Cluster |
getSourceCluster()
Gets the source cluster of the network link.
|
int |
getSourcePort()
Gets the source port of the network link
|
Processor |
getSourceProcessor()
Gets the source processor of the network link.
|
getId, getName, toString
private final int sourcePort
private final int destinationPort
private final int latency
private final Cluster sourceCluster
private final Cluster destinationCluster
private final Processor sourceProcessor
private final Processor destinationProcessor
public NetworkLink(java.lang.String name, int id, int sourcePort, int destinationPort, int latency, Processor srcProcessor, Processor dstProcessor, Cluster srcCluster, Cluster dstCluster)
name
- name of the processorid
- id of the processorsourcePort
- source port where the link startsdestinationPort
- destination port where the link endslatency
- latency of the network linksrcProcessor
- source processordstProcessor
- destination processorsrcCluster
- source clusterdstCluster
- destination clusterpublic Cluster getSourceCluster()
public Cluster getDestinationCluster()
public Processor getSourceProcessor()
public Processor getDestinationProcessor()
public int getSourcePort()
public int getDestinationPort()
public int getLatency()