[AGENT++] SNMP classes design (SNMP++, SNMP4J, SNMP++.NET)

Marek Malowidzki malowidz at wil.waw.pl
Wed Aug 11 09:59:43 CEST 2004


Hi,

I reviewed the class diagram for SNMP4J and have a question about it.
Similarly to SNMP++, a single "PDU Bag" class is used to include all
possible PDU types. For example, there is no such a class like GetPdu,
SetPdu, etc. I am curious, why you have decided to follow the SNMP++
approach when designing the Java API. I think that it would be, from the OO
design point of view, a lot more elegant to assign functionality to related
classes.

Best regards,

Marek

PS. Originally, for SNMP++.NET, I intended to implement a separate class for
each PDU type. However, taking into account that the package is addressed
mainly to SNMP++ developers, and taking into account SNMP4J (you are
creating a kind of standard!), I have decided to also apply this approach as
people are getting used to it. (Although I personally do not like this
approach.)




More information about the AGENTPP mailing list