3
« on: June 25, 2008, 04:55:15 pm »
Thanks Simon, we're getting closer.
What happens with our 'coded component' is that for example
Component "PNI" as an instance is displayed as "Instance: " and not as "Instance: PNI" as aspected.
We think we need to code this also somewhere, cfr "println", but we fail to find where?
Hope you see where we get lost?
This is our code:
shape main{
//Initialisation attributes
h_align = "center";
v_align = "center";
// Component for Access Network
if (HasTag("Domain","Access Network"))
{
setpencolor(0,0,0);
}
// Component for Billing
if (HasTag("Domain","Billing"))
{
setpencolor(0,128,255);
}
// Component for Business Intelligence
if (HasTag("Domain","Business Intelligence"))
{
setpencolor(255,128,0);
}
// Component for Core Network
if (HasTag("Domain","Core Network"))
{
setpencolor(255,128,255);
}
// Component for External Partners
if (HasTag("Domain","External Partners"))
{
setpencolor(255,0,0);
}
// Component for Financial Management
if (HasTag("Domain","Financial Management"))
{
setpencolor(0,128,128);
}
// Component for IT Integration
if (HasTag("Domain","IT Integration"))
{
setpencolor(128,0,255);
}
// Component for OSS
if (HasTag("Domain","OSS"))
{
setpencolor(128,0,0);
}
// Component for Proximus Support Systems
if (HasTag("Domain","Proximus Support Systems"))
{
setpencolor(255,255,0);
}
// Component for Relationship Management
if (HasTag("Domain","Relationship Management"))
{
setpencolor(0,255,128);
}
// Component for Service Delivery
if (HasTag("Domain","Service Delivery"))
{
setpencolor(192,192,192);
}
// Component for Other domain
if (HasTag("Domain","Other"))
{
setpencolor(0,0,0);
}
// Draw component diagram
setpenwidth(2);
rectangle(0,0,120,90);
image ("__BMB_Logo.bmp",0,0,20,18);
startpath();
moveto(105,5);
lineto(115,5);
lineto(115,30);
lineto(105,30);
endpath();
fillandstrokepath();
startpath();
moveto(100,10);
lineto(110,10);
lineto(110,15);
lineto(100,15);
endpath();
fillandstrokepath();
startpath();
moveto(100,20);
lineto(110,20);
lineto(110,25);
lineto(100,25);
endpath();
fillandstrokepath();
// Print name and status in the component element
println("#stereotype#");
println("#name#");
}
Greetings,
Eric