public class NOCConnection
extends Object
implements Serializable
| Constructor and Description |
|---|
NOCConnection()
Creates an empty NOC connection.
|
NOCConnection(org.json.JSONObject json,
NOCDesign nd)
Creates a NOC connection from a JSON path description.
|
NOCConnection(NOCMaster source,
NOCSlave dest,
NOCConnection templatePath)
Creates a NOC connection by copying traffic properties from a template path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(NOCChannel net)
Adds a channel to this connection.
|
void |
checkUnsupportedFields(org.json.JSONObject json)
Checks whether a JSON path description contains fields that are not supported.
|
HashSet<String> |
getAllComponents()
Gets all physical components used by this connection.
|
Map<ChannelType,NOCChannel> |
getChannels()
Gets the map of channels that pertain to this connection.
|
CommunicationType |
getCommType()
Gets the communication type associated with this connection.
|
NOCSlave |
getDest()
Gets the destination or NOC slave for this connection.
|
int |
getEstimatedReadBandwidth()
Gets the estimated read bandwidth in MB/s of this connection.
|
int |
getEstimatedWriteBandwidth()
Gets the estimated write bandwidth in MB/s of this connection.
|
String |
getExclusiveGroup()
Gets the exclusive group name for this connection.
|
int |
getPhase()
Gets the traffic phase for this connection.
|
String |
getPort()
Gets the port name associated with this connection.
|
int |
getReadAverageBurst()
Gets the average read burst length for this connection.
|
int |
getReadBandwidth()
Gets the read bandwidth in MB/s of this connection.
|
int |
getReadLatency()
Gets the read latency for this connection in cycles.
|
org.json.JSONObject |
getSolutionJSONObject()
Converts this connection to its solution JSON representation.
|
NOCMaster |
getSource()
Gets the source or NOC master for this connection.
|
org.json.JSONObject |
getTrafficJSONObject()
Converts this connection to its traffic JSON representation.
|
int |
getWriteAverageBurst()
Gets the average write burst length for this connection.
|
int |
getWriteBandwidth()
Gets the write bandwidth in MB/s of this connection.
|
int |
getWriteLatency()
Gets the write latency for this connection in cycles.
|
boolean |
isDestLocked()
Checks whether this connection destination is locked.
|
boolean |
isPathLocked()
Checks whether this connection path is locked.
|
boolean |
isRouted()
Checks if this connection is routed.
|
boolean |
isSourceLocked()
Checks whether this connection source is locked.
|
void |
parseRoute(org.json.JSONObject json)
Parses routed solution data into this connection.
|
void |
removeChannel(ChannelType nc)
Removes a channel from this connection.
|
void |
setChannels(Map<ChannelType,NOCChannel> nets)
Sets the channels that pertain to this connection.
|
void |
setCommType(CommunicationType commType)
Sets the communication type associated with this connection.
|
void |
setDest(NOCSlave dest)
Sets the destination slave client for this connection.
|
void |
setDestLocked(boolean isDestLocked)
Sets whether this connection destination is locked.
|
void |
setEstimatedReadBandwidth(int estReadBandwidth)
Sets the estimated read bandwidth in MB/s for this connection.
|
void |
setEstimatedWriteBandwidth(int estWriteBandwidth)
Sets the estimated write bandwidth in MB/s for this connection.
|
void |
setExclusiveGroup(String exclusiveGroup)
Sets the exclusive group name for this connection.
|
void |
setPathLocked(boolean isPathLocked)
Sets whether this connection path is locked.
|
void |
setPhase(int phase)
Sets the traffic phase for this connection.
|
void |
setPort(String port)
Sets the port name associated with this connection.
|
void |
setReadAverageBurst(int readAverageBurst)
Sets the average read burst length for this connection.
|
void |
setReadBandwidth(int readBandwidth)
Sets the read bandwidth in MB/s for this connection.
|
void |
setReadLatency(int readLatency)
Sets the read latency for this connection in cycles.
|
void |
setRouted(boolean isRouted)
Sets whether this connection is routed.
|
void |
setSource(NOCMaster source)
Sets the source master client for this connection.
|
void |
setSourceLocked(boolean isSourceLocked)
Sets whether this connection source is locked.
|
void |
setWriteAverageBurst(int writeAverageBurst)
Sets the average write burst length for this connection.
|
void |
setWriteBandwidth(int writeBandwidth)
Sets the write bandwidth in MB/s for this connection.
|
void |
setWriteLatency(int writeLatency)
Sets the write latency for this connection in cycles.
|
public NOCConnection()
public NOCConnection(NOCMaster source, NOCSlave dest, NOCConnection templatePath)
source - The source master client.dest - The destination slave client.templatePath - The connection that provides the traffic properties to copy.public NOCConnection(org.json.JSONObject json,
NOCDesign nd)
json - The JSON path description.nd - The NOC design containing the referenced clients.public void checkUnsupportedFields(org.json.JSONObject json)
json - The JSON path description to check.public org.json.JSONObject getTrafficJSONObject()
public NOCMaster getSource()
public NOCSlave getDest()
public int getPhase()
public void setPhase(int phase)
phase - The traffic phase to set.public String getPort()
public void setPort(String port)
port - The port name to set.public CommunicationType getCommType()
public void setCommType(CommunicationType commType)
commType - The communication type to set.public int getReadBandwidth()
public void setReadBandwidth(int readBandwidth)
readBandwidth - The read bandwidth in MB/s.public int getWriteBandwidth()
public void setWriteBandwidth(int writeBandwidth)
writeBandwidth - The write bandwidth in MB/s.public int getEstimatedReadBandwidth()
public void setEstimatedReadBandwidth(int estReadBandwidth)
estReadBandwidth - The estimated read bandwidth in MB/s.public int getEstimatedWriteBandwidth()
public void setEstimatedWriteBandwidth(int estWriteBandwidth)
estWriteBandwidth - The estimated write bandwidth in MB/s.public int getReadLatency()
public void setReadLatency(int readLatency)
readLatency - The read latency in cycles.public int getWriteLatency()
public void setWriteLatency(int writeLatency)
writeLatency - The write latency in cycles.public int getReadAverageBurst()
public void setReadAverageBurst(int readAverageBurst)
readAverageBurst - The average read burst length to set.public int getWriteAverageBurst()
public void setWriteAverageBurst(int writeAverageBurst)
writeAverageBurst - The average write burst length to set.public Map<ChannelType,NOCChannel> getChannels()
public void setChannels(Map<ChannelType,NOCChannel> nets)
nets - The map of channel types to channels to set.public void addChannel(NOCChannel net)
net - The channel to add.public void removeChannel(ChannelType nc)
nc - The channel type to remove.public boolean isRouted()
public void setRouted(boolean isRouted)
isRouted - True if this connection is routed, false otherwise.public boolean isPathLocked()
public void setPathLocked(boolean isPathLocked)
isPathLocked - True if the path is locked, false otherwise.public boolean isSourceLocked()
public void setSourceLocked(boolean isSourceLocked)
isSourceLocked - True if the source is locked, false otherwise.public boolean isDestLocked()
public void setDestLocked(boolean isDestLocked)
isDestLocked - True if the destination is locked, false otherwise.public void setSource(NOCMaster source)
source - The source master client to set.public void setDest(NOCSlave dest)
dest - The destination slave client to set.public String getExclusiveGroup()
public void setExclusiveGroup(String exclusiveGroup)
exclusiveGroup - The exclusive group name to set.public void parseRoute(org.json.JSONObject json)
json - The JSON route description to parse.public org.json.JSONObject getSolutionJSONObject()
public HashSet<String> getAllComponents()