inet-3.6.4/src/inet/linklayer/xmac/XMacLayer.cc
/**
 * Change the color of the node for animation purposes.
 */
Change the color of the node for animation purposes.
Change the color of the node for animation purposes .
void XMacLayer::changeDisplayColor(XMAC_COLORS color)
{
	if (!animation)
		return;
	cDisplayString& dispStr = getContainingNode(this)->getDisplayString();
	if (color == GREEN)
		dispStr.setTagArg("b", 3, "green");
	if (color == BLUE)
		dispStr.setTagArg("b", 3, "blue");
	if (color == RED)
		dispStr.setTagArg("b", 3, "red");
	if (color == BLACK)
		dispStr.setTagArg("b", 3, "black");
	if (color == YELLOW)
		dispStr.setTagArg("b", 3, "yellow");
}
void XMacLayer :: changeDisplayColor ( XMAC_COLORS color ) { if ( ! animation ) return ; cDisplayString & dispStr = getContainingNode ( this ) -> getDisplayString ( ) ; if ( color == GREEN ) dispStr . setTagArg ( " " , 3 , " " ) ; if ( color == BLUE ) dispStr . setTagArg ( " " , 3 , " " ) ; if ( color == RED ) dispStr . setTagArg ( " " , 3 , " " ) ; if ( color == BLACK ) dispStr . setTagArg ( " " , 3 , " " ) ; if ( color == YELLOW ) dispStr . setTagArg ( " " , 3 , " " ) ; }
Change the color of the node for animation purposes.
Change the color of the node for animation purposes .
//b=40,40,rect,black,black,2"
 //dispStr.parse("b=40,40,rect,green,green,2");
 //dispStr.parse("b=40,40,rect,blue,blue,2");
 //dispStr.parse("b=40,40,rect,red,red,2");
 //dispStr.parse("b=40,40,rect,black,black,2");
 //dispStr.parse("b=40,40,rect,yellow,yellow,2");
