I have a Data class that can be placed inside a DataCollection class that can be placed inside a DataCollectionCollection class. Kinda like an egg can placed inside a box that can be placed inside a crate.
The Data class can be "standardized" through a special process. Standardizing it will create a new StandardizedData class that contains some information about the standardization process it went through.
The StandardizedDataClass can be placed only inside a StandardizedDataCollection. The StandardizedDataCollection class must only accept StandardizedData objects that have gone through a similar standardization process.
A StandardizedDataCollection class can only be placed inside a StandardizatedDataCollectioCollection class which again, must only accept StandardizedDataCollection classes that have gone through a similar standardization process.
There are a few ways I've thought of on how to do this:
- Have StandardizedData, Collection, and CollectionCollection store than the standardization info. I'd like to avoid this scenario if possible as there could be a 1000 StandardizedData object which will be loaded into the small memory of mobile devices.
That's the only idea I can explain on paper for now. One last thing: StandardizedData should not be allowed to be standardized again as this will make it less accurate.