OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000554OMNeT++simulation kernelpublic2012-03-20 14:082012-12-18 11:59
andras 
rhornig 
normalfeaturehave not tried
resolvedno change required 
4.2.2 
4.2.2 
0000554: @statistic does not allow specifying the enum for a vector
When using @statistic, it is not possible to make the runtime write an "attr enum..." line into the vector file. This line would associate numbers with their symbolic names, e.g. attr enum "IDLE=0,BUSY=1". Normally, this functionality is available via cOutVector::setEnum(const char *registeredEnumName).

Proposal: @statistic(enum=<registeredEnumName>) should be recognized.
No tags attached.
Issue History
2012-03-20 14:08andrasNew Issue
2012-12-17 16:40rhornigStatusnew => resolved
2012-12-17 16:40rhornigFixed in Version => 4.3b1
2012-12-17 16:40rhornigResolutionopen => fixed
2012-12-17 16:40rhornigAssigned To => rhornig
2012-12-17 16:41rhornigNote Added: 0000788
2012-12-18 11:26andrasNote Added: 0000789
2012-12-18 11:26andrasStatusresolved => feedback
2012-12-18 11:26andrasResolutionfixed => reopened
2012-12-18 11:59rhornigNote Added: 0000790
2012-12-18 11:59rhornigStatusfeedback => resolved
2012-12-18 11:59rhornigFixed in Version4.3b1 => 4.2.2
2012-12-18 11:59rhornigResolutionreopened => no change required

Notes
(0000788)
rhornig   
2012-12-17 16:41   
An examples using enums has been added to the aloha example
(0000789)
andras   
2012-12-18 11:26   
Was NOT fixed actually (there was no change in the repo)
(0000790)
rhornig   
2012-12-18 11:59   
This feature is already available in 4.2.2.

An example how to use it was added to the aloha sample:
https://github.com/omnetpp/omnetpp/commit/c62354b0313fe0643ad4b8a5fc5652b755557f39 [^]