Originally Posted by
Steve11235
The classes I created have the following purpose: An XML-based model represents the contents of a simulation executable. In theory, the XML model exactly describes the simulation. In reality, the XML may be incorrect. On one side, JAXB is used to turn the XML into Java classes. On the simulation side, a monitor queries the simulation and reports the actual components in the simulation as a set of classes. My classes are initially based on the XML model, but they have a good deal of logic to allow the user to send information to the simulation. Once the simulation is running, my classes match the XML model to what is actually reported, adding any components missing from the XML model.
In addition, a test system was required. It does not use XML or a running simulation; it simulates both. I used abstract base classes with thin implementations, mostly constructors, to implement these two systems.
OO says that an object encapsulates the data, along with the methods that act on the data. Removing the logic to create the object from its constructor is not OO in any form I know of. What I am asking is, is there a design pattern that creates data structures and operates on them using external functions? I'm not planning on adopting this myself, but I do need to understand where the client is coming from. I'm guessing an embedded C background, but I'm not sure.