public class NOCChannel
extends Object
implements Serializable
| Constructor and Description |
|---|
NOCChannel()
Creates an empty NOC channel.
|
NOCChannel(org.json.JSONObject json)
Creates a NOC channel from a JSON channel description.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<String> |
getAllPhyInstances()
Gets all physical instances used by this channel path.
|
List<String> |
getChannelPath()
Gets the list of switches used to connect this NOC Channel
|
ChannelType |
getChannelType()
Gets this channel's type
|
int |
getEstimatedBandwidth()
Gets the estimated bandwidth expected for this channel (MB/s)
|
int |
getEstimatedLatency()
Gets the estimated latency achieved on this channel (in cycles)
|
int |
getRequiredBandwidth()
Gets this channel's required bandwidth (in MB/s)
|
int |
getRequiredLatency()
Gets the latency constraint on this channel (in cycles)
|
int |
getVc()
Gets the virtual channel index.
|
void |
setChannelPath(ArrayList<String> channelPath)
Sets the list of switches used to connect this NOC Channel
|
void |
setChannelType(ChannelType channel)
Sets this channel's type
|
void |
setEstimatedBandwidth(int estimatedBandwidth)
Sets the estimated bandwidth expected for this channel (in MB/s)
|
void |
setEstimatedLatency(int estimatedLatency)
Sets the estimated latency achieved on this channel in cycles.
|
void |
setRequiredBandwidth(int requiredBandwidth)
Sets this channel's required bandwidth (in MB/s)
|
void |
setRequiredLatency(int requiredLatency)
Sets the required latency for this channel in cycles.
|
void |
setVc(int vc)
Sets the virtual channel index.
|
org.json.JSONObject |
toJSONObject()
Converts this channel to its JSON representation.
|
public NOCChannel()
public NOCChannel(org.json.JSONObject json)
json - The JSON channel description.public List<String> getChannelPath()
public void setChannelPath(ArrayList<String> channelPath)
channelPath - public ChannelType getChannelType()
public void setChannelType(ChannelType channel)
channel - The new channel type to setpublic int getVc()
public void setVc(int vc)
vc - The virtual channel index to set.public int getRequiredBandwidth()
public void setRequiredBandwidth(int requiredBandwidth)
requiredBandwidth - Channel's required bandwidth (in MB/s)public int getEstimatedBandwidth()
public void setEstimatedBandwidth(int estimatedBandwidth)
estimatedBandwidth - public int getRequiredLatency()
public void setRequiredLatency(int requiredLatency)
requiredLatency - The required latency in cycles.public int getEstimatedLatency()
public void setEstimatedLatency(int estimatedLatency)
estimatedLatency - The estimated latency in cycles.public ArrayList<String> getAllPhyInstances()
public org.json.JSONObject toJSONObject()