Here is the code:
- Code: Select all
public class MyPlugin extends Plugin {
@Override public void eventTriggered(SignalInstance signal) {
FeatureValueList fvl = signal.getFeatureValues();
FeatureValue fv = fvl.getValue(0);
Object theObject = fUMLHelper.getObjectFromFeatureValue(fv);
}
}
if I use theObject.toString(), I get the following:
message_b_instance : message_b@779f9fa9 {
frequency = [3434.0000]
bandwidth = [89.0000]
I can get the values 3434.000 and 89.000 programmatically using OpenAPI functions. I can even get the numerical java types. That's great.
However, I simply cannot, no matter what I do, get the name "frequency" or "bandwidth" programmatically. getName() doesn't exist in any of the methods. There is no "name" accessor. There does not appear to be any way for me to access the names of these values!!!
The data is obviously there, because the toString() method shows the names.
How do I get the names "frequency" and "bandwidth" programmatically? Please help!!