Skip to content
Snippets Groups Projects
Commit 9f3d008a authored by Letitia Li's avatar Letitia Li
Browse files

security patterns

parent 7b73e0c7
No related branches found
No related tags found
No related merge requests found
......@@ -1226,7 +1226,6 @@ public class TML2Avatar {
AvatarRelation ar= new AvatarRelation(channel.getName(), taskBlockMap.get(channel.getOriginTask()), taskBlockMap.get(channel.getDestinationTask()), channel.getReferenceObject());
LinkedList<HwCommunicationNode> path =tmlmap.findNodesForElement(channel);
if (path.size()!=0){
// System.out.println(path);
ar.setPrivate(true);
for (HwCommunicationNode node:path){
if (node instanceof HwBus){
......
......@@ -110,6 +110,7 @@ public class TMLADDecrypt extends TGCWithoutInternalComponent implements Embedde
g.drawLine(x + (width/2) - lineLength1, y+(height-ilength)/2 + ilength, x + (width/2) + lineLength1, y+(height-ilength)/2 + ilength);
g.drawLine(x + (width/2)- lineLength1, y+(height-ilength)/2, x + (width/2)- lineLength1, y+(height+ilength)/2);
g.drawLine(x + (width/2)+ lineLength1, y+(height-ilength)/2, x + (width/2)+ lineLength1, y+(height+ilength)/2);
g.drawString("sec:"+ securityContext, x+3*width/2, y+ height/2);
}
public boolean editOndoubleClick(JFrame frame) {
......
......@@ -112,6 +112,7 @@ public class TMLADEncrypt extends TGCWithoutInternalComponent implements Embedde
g.drawLine(x + (width/2) - lineLength1, y+(height-ilength)/2 + ilength, x + (width/2) + lineLength1, y+(height-ilength)/2 + ilength);
g.drawLine(x + (width/2) - lineLength1, y+(height-ilength)/2 + ilength/2, x + (width/2) + lineLength1, y+(height-ilength)/2 + ilength/2);
g.drawLine(x + (width/2)- lineLength1, y+(height-ilength)/2, x + (width/2)- lineLength1, y+(height+ilength)/2);
g.drawString("sec:"+ securityContext, x+3*width/2, y+ height/2);
}
public boolean editOndoubleClick(JFrame frame) {
......@@ -123,7 +124,7 @@ public boolean editOndoubleClick(JFrame frame) {
values[1]=keySize;
labels[2]="MAC Size";
values[2]=MACSize;
labels[3]="calcTime";
labels[3]="calcTime";
values[3]=calculationTime;
......
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