Commit 77d8f39b authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Update on files to resolved errors

parent 4a677614
......@@ -839,8 +839,8 @@ public class ActionPerformer {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.TMLARCHI_BRIDGENODE);
} else if (command.equals(mgui.actions[TGUIAction.TMLARCHI_HWANODE].getActionCommand())) {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.TMLARCHI_HWANODE);
} else if (command.equals(mgui.actions[TGUIAction.TMLARCHI_CAMSNODE].getActionCommand())) {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.TMLARCHI_CAMSNODE);
//} else if (command.equals(mgui.actions[TGUIAction.TMLARCHI_CAMSNODE].getActionCommand())) {
//mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.TMLARCHI_CAMSNODE);
} else if (command.equals(mgui.actions[TGUIAction.TMLARCHI_MEMORYNODE].getActionCommand())) {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.TMLARCHI_MEMORYNODE);
} else if (command.equals(mgui.actions[TGUIAction.TMLARCHI_DMANODE].getActionCommand())) {
......@@ -895,12 +895,12 @@ public class ActionPerformer {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.TMLSD_ACTION_STATE);
//SystemC AMS
} else if (command.equals(mgui.actions[TGUIAction.CAMS_EDIT].getActionCommand())) {
/*} else if (command.equals(mgui.actions[TGUIAction.CAMS_EDIT].getActionCommand())) {
mgui.actionOnButton(TGComponentManager.EDIT, -1);
} else if (command.equals(mgui.actions[TGUIAction.CAMS_BLOCK].getActionCommand())) {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.CAMS_BLOCK);
} else if (command.equals(mgui.actions[TGUIAction.CAMS_CONNECTOR].getActionCommand())) {
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.CAMS_CONNECTOR);
mgui.actionOnButton(TGComponentManager.COMPONENT, TGComponentManager.CAMS_CONNECTOR);*/
// Attack Tree Diagrams
} else if (command.equals(mgui.actions[TGUIAction.ATD_BLOCK].getActionCommand())) {
......
......@@ -70,7 +70,6 @@ import ui.tmlsd.TGConnectorMessageTMLSD;
import ui.tmlsd.TMLSDControllerInstance;
import ui.tmlsd.TMLSDStorageInstance;
import ui.tmlsd.TMLSDTransferInstance;
import ui.het.*;
import java.util.*;
import java.awt.Point;
......
......@@ -83,7 +83,6 @@ import ui.tmlcompd.TMLCCompositeComponent;
import ui.tmlcompd.TMLComponentTaskDiagramPanel;
import ui.tmlcp.TMLCPPanel;
import ui.tmldd.TMLArchiDiagramPanel;
import ui.tmldd.TMLArchiCAMSNode;
import ui.tmlsd.TMLSDPanel;
//import ui.het.*;
import ui.tree.DiagramTreeModel;
......@@ -991,7 +990,7 @@ public class MainGUI implements ActionListener, WindowListener, KeyListener, Pe
return index;
}
public int addSystemCAMSPanel(String name, int index) { //ajout CD -----Mark
/*public int addSystemCAMSPanel(String name, int index) { //ajout CD -----Mark
if (index == -1) {
index = tabs.size();
}
......@@ -1019,7 +1018,7 @@ public class MainGUI implements ActionListener, WindowListener, KeyListener, Pe
mainTabbedPane.setIconAt(index, IconManager.imgic60);
scp.init();
return scp.getCAMSBlockDiagramPanel();
}
}*/
//Return the list of all the TMLArchiDiagramPanels
public Vector<TMLArchiPanel> getTMLArchiDiagramPanels() {
......@@ -1396,11 +1395,11 @@ public class MainGUI implements ActionListener, WindowListener, KeyListener, Pe
return index;
}
public int createSystemCAMS(String name) { //ajout CD
/*public int createSystemCAMS(String name) { //ajout CD
int index = addSystemCAMSPanel(name, -1);
mainTabbedPane.setSelectedIndex(index);
return index;
}
}*/
public int createADD(String name) {
int index = addADDPanel(name, -1);
......@@ -1775,14 +1774,14 @@ public class MainGUI implements ActionListener, WindowListener, KeyListener, Pe
//frame.repaint();
}
public void newSystemCAMS() {//ajout CD
/*public void newSystemCAMS() {//ajout CD
//TraceManager.addDev("NEW DIPLO Architecture");
addSystemCAMSPanel("SystemC-AMS", -1);
tabs.elementAt(tabs.size()-1).tabbedPane.setSelectedIndex(0);
mainTabbedPane.setSelectedIndex(tabs.size()-1);
//paneAction(null);
//frame.repaint();
}
}*/
public void newADD() {
//TraceManager.addDev("NEW Avatar deployment");
......
......@@ -42,11 +42,11 @@
package ui;
import myutil.GraphicLib;
import ui.het.CAMSBlockDiagramToolBar;
import ui.het.CAMSBlockDiagramPanel;
//import ui.het.CAMSBlockDiagramToolBar;
//import ui.het.CAMSBlockDiagramPanel;
import ui.util.IconManager;
import ui.TDiagramPanel;
import ui.window.JDialogCAMSBlocks;
//import ui.window.JDialogCAMSBlocks;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
......@@ -63,8 +63,8 @@ import java.util.Vector;
* @see MainGUI
*/
public class SystemCAMSPanel extends TURTLEPanel {
public SystemCAMSPanel scp;
public CAMSBlockDiagramPanel camsbdp;
//public SystemCAMSPanel scp;
//public CAMSBlockDiagramPanel camsbdp;
public TURTLEPanel tp;
public TDiagramPanel tdp;
public Vector<TGComponent> validated, ignored;
......@@ -87,7 +87,7 @@ public class SystemCAMSPanel extends TURTLEPanel {
public void init() {
// Class Diagram toolbar
CAMSBlockDiagramToolBar camstoolBar = new CAMSBlockDiagramToolBar(mgui);
/*CAMSBlockDiagramToolBar camstoolBar = new CAMSBlockDiagramToolBar(mgui);
toolbars.add(camstoolBar);
toolBarPanel = new JPanel();
toolBarPanel.setLayout(new BorderLayout());
......@@ -108,7 +108,7 @@ public class SystemCAMSPanel extends TURTLEPanel {
toolBarPanel.add(jsp, BorderLayout.CENTER);
tabbedPane.addTab("SystemC-AMS Diagram", IconManager.imgic60, toolBarPanel, "opens SystemC-AMS diagram");
tabbedPane.setSelectedIndex(0);
mgui.changeMade(camsbdp, TDiagramPanel.NEW_COMPONENT);
mgui.changeMade(camsbdp, TDiagramPanel.NEW_COMPONENT);*/
}
......@@ -134,7 +134,7 @@ public class SystemCAMSPanel extends TURTLEPanel {
}
}
public CAMSBlockDiagramPanel getCAMSBlockDiagramPanel(){
/*public CAMSBlockDiagramPanel getCAMSBlockDiagramPanel(){
return camsbdp;
}
}*/
}
......@@ -109,7 +109,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
protected List<TGComponent> componentList;
protected TGConnectingPoint selectedConnectingPoint;
protected CAMSConnectingPoint selectedCAMSConnectingPoints;
//protected CAMSConnectingPoint selectedCAMSConnectingPoints;
protected TGComponent componentPointed;
protected TGComponent componentPopup;
protected TToolBar ttb;
......@@ -178,7 +178,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
protected int y2;
protected Vector<Point> listPoint;
protected TGConnectingPoint p1, p2;
protected CAMSConnectingPoint cp1, cp2;
//protected CAMSConnectingPoint cp1, cp2;
protected int type;
// For component selection
......@@ -475,8 +475,8 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
if (this.javaVisible && (tgc.hasPostJavaCode () || tgc.hasPreJavaCode ()))
tgc.drawJavaCode (g);
if (this instanceof CAMSBlockDiagramPanel) //Connecting points should always be visible in System-C AMS panels
tgc.drawTGConnectingPoint (g, this.type);
//if (this instanceof CAMSBlockDiagramPanel) //Connecting points should always be visible in System-C AMS panels
//tgc.drawTGConnectingPoint (g, this.type);
}
// Draw name of component selected
......@@ -907,9 +907,9 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
return selectedConnectingPoint;
}
public CAMSConnectingPoint getSelectedCAMSConnectingPoint(){
return selectedCAMSConnectingPoints;
}
//public CAMSConnectingPoint getSelectedCAMSConnectingPoint(){
//return selectedCAMSConnectingPoints;
//}
// Adding component
public TGComponent addComponent(int x, int y, boolean swallow) {
......@@ -1050,7 +1050,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
listPoint = null;
}
public void addingCAMSConnector() {
/*public void addingCAMSConnector() {
listPoint = new Vector<Point>();
cp1 = getSelectedCAMSConnectingPoint();
x1 = cp1.getX(); y1 = cp1.getY();
......@@ -1086,7 +1086,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
stopAddingConnector(true);
cp1.setFree(true);
}
}
}*/
// -------------mark
......
......@@ -75,7 +75,7 @@ import ui.tmlcompd.*;
import ui.tmlcp.*;
import ui.tmldd.*;
import ui.tmlsd.*;
import ui.het.*;
//import ui.het.*;
import ui.ucd.*;
import java.awt.*;
......@@ -262,7 +262,7 @@ public class TGComponentManager {
public static final int TMLARCHI_BUSNODE = 1102;
public static final int TMLARCHI_COMMUNICATION_ARTIFACT = 1103;
public static final int TMLARCHI_HWANODE = 1104;
public static final int TMLARCHI_CAMSNODE = 1115;
//public static final int TMLARCHI_CAMSNODE = 1115;
public static final int TMLARCHI_MEMORYNODE = 1105;
public static final int TMLARCHI_BRIDGENODE = 1106;
public static final int TMLARCHI_DMANODE = 1107;
......@@ -323,8 +323,8 @@ public class TGComponentManager {
public static final int TMLSD_ACTION_STATE = 1524;
// SystemC-AMS
public static final int CAMS_CONNECTOR = 1601;
public static final int CAMS_BLOCK = 1602 ;
//public static final int CAMS_CONNECTOR = 1601;
//public static final int CAMS_BLOCK = 1602 ;
// SMD diagram
public static final int PROSMD_START_STATE = 2000;
......@@ -1178,9 +1178,9 @@ public class TGComponentManager {
case TMLARCHI_HWANODE:
tgc = new TMLArchiHWANode(x, y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp);
break;
case TMLARCHI_CAMSNODE:
/*case TMLARCHI_CAMSNODE:
tgc = new TMLArchiCAMSNode(x, y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp);
break;
break;*/
case TMLARCHI_MEMORYNODE:
tgc = new TMLArchiMemoryNode(x, y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp);
break;
......@@ -1202,9 +1202,9 @@ public class TGComponentManager {
case TMLARCHI_KEY:
tgc = new TMLArchiKey(x, y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp);
break;
case CAMS_BLOCK:
tgc = new CAMSBlock(x,y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp);
break;
//case CAMS_BLOCK:
//tgc = new CAMSBlock(x,y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp);
//break;
// Communication patterns + SD
case TMLCP_CHOICE:
......@@ -1588,8 +1588,8 @@ public class TGComponentManager {
return AAD_ASSOCIATION_CONNECTOR;
//SystemC-AMS -----mark
} else if (tgc instanceof CAMSBlockConnector) {
return CAMS_CONNECTOR;
//} else if (tgc instanceof CAMSBlockConnector) {
//return CAMS_CONNECTOR;
// Others
} else if (tgc instanceof TADDeterministicDelay) {
......@@ -1905,8 +1905,8 @@ public class TGComponentManager {
// return AVATAR_FIREWALL;
} else if (tgc instanceof TMLArchiHWANode) {
return TMLARCHI_HWANODE;
} else if (tgc instanceof TMLArchiCAMSNode) {
return TMLARCHI_CAMSNODE;
/*} else if (tgc instanceof TMLArchiCAMSNode) {
return TMLARCHI_CAMSNODE;*//
} else if (tgc instanceof TMLArchiMemoryNode) {
return TMLARCHI_MEMORYNODE;
} else if (tgc instanceof TMLArchiDMANode) {
......@@ -2312,10 +2312,10 @@ public class TGComponentManager {
}
public final static CAMSBlockConnector addCAMSConnector(int x, int y, int id, TDiagramPanel tdp, CAMSConnectingPoint p1, CAMSConnectingPoint p2, Vector<Point> listPoint) {
/*public final static CAMSBlockConnector addCAMSConnector(int x, int y, int id, TDiagramPanel tdp, CAMSConnectingPoint p1, CAMSConnectingPoint p2, Vector<Point> listPoint) {
CAMSBlockConnector cbc = null;
cbc = new CAMSBlockConnector(x, y, tdp.getMinX(), tdp.getMaxX(), tdp.getMinY(), tdp.getMaxY(), false, null, tdp, p1, p2, listPoint);
return cbc;
}
}*/
} // Class
/* Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Ludovic Apvrille
*
* ludovic.apvrille AT enst.fr
*
* This software is a computer program whose purpose is to allow the
* edition of TURTLE analysis, design and deployment diagrams, to
* allow the generation of RT-LOTOS or Java code from this diagram,
* and at last to allow the analysis of formal validation traces
* obtained from external tools, e.g. RTL from LAAS-CNRS and CADP
* from INRIA Rhone-Alpes.
*
* This software is governed by the CeCILL license under French law and
* abiding by the rules of distribution of free software. You can use,
* modify and/ or redistribute the software under the terms of the CeCILL
* license as circulated by CEA, CNRS and INRIA at the following URL
* "http://www.cecill.info".
*
* As a counterpart to the access to the source code and rights to copy,
* modify and redistribute granted by the license, users are provided only
* with a limited warranty and the software's author, the holder of the
* economic rights, and the successive licensors have only limited
* liability.
*
* In this respect, the user's attention is drawn to the risks associated
* with loading, using, modifying and/or developing or reproducing the
* software by the user in light of its specific status of free software,
* that may mean that it is complicated to manipulate, and that also
* therefore means that it is reserved for developers and experienced
* professionals having in-depth computer knowledge. Users are therefore
* encouraged to load and test the software's suitability as regards their
* requirements in conditions enabling the security of their systems and/or
* data to be ensured and, more generally, to use and operate it in the
* same conditions as regards security.
*
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL license and that you accept its terms.
*/
package ui.tmldd;
import myutil.GraphicLib;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import tmltranslator.HwCPU;
import ui.*;
//import ui.het.*;
import ui.util.IconManager;
import javax.swing.*;
import java.awt.*;
import java.util.Vector;
/**
* Class TMLArchiCAMSNode
* System C-AMS Node. To be used in TML architecture diagrams.
* Creation: 06/09/2017
* @version 1.0 06/09/2017
* @author Côme DEMARIGNY
*/
public class TMLArchiCAMSNode extends TMLArchiNode implements SwallowTGComponent, WithAttributes {
private int textY1 = 15;
private int textY2 = 30;
private int derivationx = 2;
private int derivationy = 3;
private String stereotype = "CAMS";
private int byteDataSize = HwCPU.DEFAULT_BYTE_DATA_SIZE;
private int execiTime = HwCPU.DEFAULT_EXECI_TIME;
private CAMSBlockDiagramPanel cbdp;
public TMLArchiCAMSNode(int _x, int _y, int _minX, int _maxX, int _minY, int _maxY, boolean _pos, TGComponent _father, TDiagramPanel _tdp) {
super(_x, _y, _minX, _maxX, _minY, _maxY, _pos, _father, _tdp);
width = 200;
height = 200;
minWidth = 100;
minHeight = 100;
nbConnectingPoint = 16;
connectingPoint = new TGConnectingPoint[16];
connectingPoint[0] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.0, 0.0);
connectingPoint[1] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.5, 0.0);
connectingPoint[2] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 1.0, 0.0);
connectingPoint[3] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.0, 0.5);
connectingPoint[4] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 1.0, 0.5);
connectingPoint[5] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.0, 1.0);
connectingPoint[6] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.5, 1.0);
connectingPoint[7] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 1.0, 1.0);
connectingPoint[8] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.25, 0.0);
connectingPoint[9] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.75, 0.0);
connectingPoint[10] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.0, 0.25);
connectingPoint[11] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 1.0, 0.25);
connectingPoint[12] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.0, 0.75);
connectingPoint[13] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 1.0, 0.75);
connectingPoint[14] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.25, 1.0);
connectingPoint[15] = new TMLArchiConnectingPoint(this, 0, 0, false, true, 0.75, 1.0);
addTGConnectingPointsComment();
nbInternalTGComponent = 0;
moveable = true;
editable = true;
removable = true;
userResizable = true;
name = tdp.findNodeName("CAMS");
value = "name";
myImageIcon = IconManager.imgic700;
}
public void internalDrawing(Graphics g) {
Color c = g.getColor();
g.draw3DRect(x, y, width, height, true);
// Top lines
g.drawLine(x, y, x + derivationx, y - derivationy);
g.drawLine(x + width, y, x + width + derivationx, y - derivationy);
g.drawLine(x + derivationx, y - derivationy, x + width + derivationx, y - derivationy);
// Right lines
g.drawLine(x + width, y + height, x + width + derivationx, y - derivationy + height);
g.drawLine(x + derivationx + width, y - derivationy, x + width + derivationx, y - derivationy + height);
// Filling color
g.setColor(ColorManager.HWA_BOX);
g.fill3DRect(x+1, y+1, width-1, height-1, true);
g.setColor(c);
// Strings
String ster = "<<" + stereotype + ">>";
int w = g.getFontMetrics().stringWidth(ster);
Font f = g.getFont();
g.setFont(f.deriveFont(Font.BOLD));
g.drawString(ster, x + (width - w)/2, y + textY1);
g.setFont(f);
w = g.getFontMetrics().stringWidth(name);
g.drawString(name, x + (width - w)/2, y + textY2);
// Icon
g.drawImage(IconManager.imgic1106.getImage(), x + 4, y + 4, null);
g.drawImage(IconManager.img9, x + width - 20, y + 4, null);
}
public TGComponent isOnOnlyMe(int x1, int y1) {
Polygon pol = new Polygon();
pol.addPoint(x, y);
pol.addPoint(x + derivationx, y - derivationy);
pol.addPoint(x + derivationx + width, y - derivationy);
pol.addPoint(x + derivationx + width, y + height - derivationy);
pol.addPoint(x + width, y + height);
pol.addPoint(x, y + height);
if (pol.contains(x1, y1)) {
return this;
}
return null;
}
public String getStereotype() {
return stereotype;
}
public String getNodeName() {
return name;
}
public boolean editOndoubleClick(JFrame frame) {
if ( cbdp == null){
MainGUI mgui = tdp.getMainGUI();
cbdp = mgui.addSystemCAMSPanel("System C-AMS Deployment of DIPLODOCUS Node", -1, this);
cbdp.setVisible(true);
cbdp.initFromDiplodocus();
}
return true;
}
// boolean error = false;
// String errors = "";
// int tmp;
// String tmpName;
// JDialogHwANode dialog = new JDialogHwANode(frame, "Setting HWA attributes", this);
// // dialog.setSize(500, 450);
// GraphicLib.centerOnParent(dialog, 500, 450);
// dialog.setVisible( true ); // blocked until dialog has been closed
// if (!dialog.isRegularClose()) {
// return false;
// }
// if (dialog.getNodeName().length() != 0) {
// tmpName = dialog.getNodeName();
// tmpName = tmpName.trim();
// if (!TAttribute.isAValidId(tmpName, false, false)) {
// error = true;
// errors += "Name of the node ";
// } else {
// name = tmpName;
// }
// }
// if (dialog.getByteDataSize().length() != 0) {
// try {
// tmp = byteDataSize;
// byteDataSize = Integer.decode(dialog.getByteDataSize()).intValue();
// if (byteDataSize <= 0) {
// byteDataSize = tmp;
// error = true;
// errors += "Data size ";
// }
// } catch (Exception e) {
// error = true;
// errors += "Data size ";
// }
// }
// if (dialog.getExeciTime().length() != 0) {
// try {
// tmp = execiTime;
// execiTime = Integer.decode(dialog.getExeciTime()).intValue();
// if (execiTime < 0) {
// execiTime = tmp;
// error = true;
// errors += "execi time ";
// }
// } catch (Exception e) {
// error = true;
// errors += "execi time ";
// }
// }
// if (dialog.getClockRatio().length() != 0) {
// try {
// tmp = clockRatio;
// clockRatio = Integer.decode(dialog.getClockRatio()).intValue();
// if (clockRatio <= 0) {
// clockRatio = tmp;
// error = true;
// errors += "Clock divider ";
// }
// } catch (Exception e) {
// error = true;
// errors += "Clock divider ";
// }
// }
// if (error) {
// JOptionPane.showMessageDialog(frame,
// "Invalid value for the following attributes: " + errors,
// "Error",
// JOptionPane.INFORMATION_MESSAGE);
// return false;
// }
// return true;
// }
public int getType() {
return TGComponentManager.TMLARCHI_CAMSNODE;
}
public boolean acceptSwallowedTGComponent(TGComponent tgc) {
return (tgc instanceof TMLArchiArtifact) && (nbInternalTGComponent == 0);
}
public boolean addSwallowedTGComponent(TGComponent tgc, int x, int y) {
if ((tgc instanceof TMLArchiArtifact) && (nbInternalTGComponent == 0)){
tgc.setFather(this);
tgc.setDrawingZone(true);
tgc.resizeWithFather();
addInternalComponent(tgc, 0);
return true;
}
return false;
}
public void removeSwallowedTGComponent(TGComponent tgc) {
removeInternalComponent(tgc);
}
public Vector<TMLArchiArtifact> getArtifactList() {
Vector<TMLArchiArtifact> v = new Vector<TMLArchiArtifact>();
for(int i=0; i<nbInternalTGComponent; i++) {
if (tgcomponent[i] instanceof TMLArchiArtifact) {
v.add( (TMLArchiArtifact) tgcomponent[i]);
}
}
return v;
}
public void hasBeenResized() {
for(int i=0; i<nbInternalTGComponent; i++) {
if (tgcomponent[i] instanceof TMLArchiArtifact) {