Skip to content
Snippets Groups Projects
Commit a3333958 authored by Irina LEE's avatar Irina LEE
Browse files

fixed cluster translator problem (syscam)

parent 5a6cbe3a
No related branches found
No related tags found
1 merge request!72Syscams
......@@ -126,11 +126,14 @@ public class SysCAMSSpecification{
return portsDE;
}
public LinkedList<SysCAMSTConnector> getAllConnector(){
public LinkedList<SysCAMSTConnector> getAllConnectorCluster(){
LinkedList<SysCAMSTConnector> cons = new LinkedList<SysCAMSTConnector>();
for (SysCAMSTConnector con : connectors) {
if (con instanceof SysCAMSTConnector) {
if (!((con.get_p1().getComponent() instanceof SysCAMSTPortConverter && con.get_p2().getComponent() instanceof SysCAMSTPortDE)
|| (con.get_p2().getComponent() instanceof SysCAMSTPortConverter && con.get_p1().getComponent() instanceof SysCAMSTPortDE))) {
cons.add(con);
}
}
}
return cons;
......
......@@ -97,7 +97,7 @@ public class TopCellGenerator {
public void saveFile(String path) {
LinkedList<SysCAMSTCluster> clusters = TopCellGenerator.syscams.getAllCluster();
LinkedList<SysCAMSTConnector> connectors = TopCellGenerator.syscams.getAllConnector();
LinkedList<SysCAMSTConnector> connectors = TopCellGenerator.syscams.getAllConnectorCluster();
String top, makefile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment