The mibgen tool generated the class WeatherStationEntry with skeleton code where the instructions should be placed to retrieve the genuine values from the weather station. The meta classes are used to find the object responsible for handling a get or set request and then route the request to the proper object. You do not need to modify any of the meta classes. They are generated and hooked up by mibgen. Following are short descriptions of the weather station classes generated by mibgen that were of interest during the development of the weather station agent.
All code is available here .
Since all the items within an entry are defined as read-only, only getters were produced by mibgen. The WeatherStationEntry class is an implementation of the WeatherStationEntryMBean. Here is where the data is declared and methods are defined for accessing the data. This isn't required, but it makes life easier because it allows me to run mibgen again without overwriting the method implementations for WeatherStationEntry when it is regenerated. The methods in WeatherStationEntryImpl call methods in the RemoteStation class, which takes care of communicating with the remote station and getting the desired value.