Bug 1409: Add an attribute "SystemId" to configure the ID for MPI
This commit is contained in:
@@ -62,6 +62,11 @@ Node::GetTypeId (void)
|
||||
UintegerValue (0),
|
||||
MakeUintegerAccessor (&Node::m_id),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
.AddAttribute ("SystemId", "The systemId of this node: a unique integer used for parallel simulations.",
|
||||
TypeId::ATTR_GET|TypeId::ATTR_SET,
|
||||
UintegerValue (0),
|
||||
MakeUintegerAccessor (&Node::m_sid),
|
||||
MakeUintegerChecker<uint32_t> ())
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user