From: Anders P. <ap...@op...> - 2007-04-21 14:21:00
|
Nick Wexler wrote: > "What do you think about the fact that PhysicalStore extends both > MatrixStore and BasicArray?" > > Unless the PhysicalStore contract states a different implementation of > a BasicArray than what BasicArray states, it should not extend > BasicArray. When necessary, I would let the appropriate classes > implement BasicArray instead of gaining those methods through > implementing PhysicalStore. > > During this change, I think documenting the Contract differences > between a MatrixStore and a PhysicalStore would be extremely helping > in determining the proper usage of the interfaces. I think my original idea was something like: BasicArray is arbitrary-dimensional, and PhysicalStore is two-dimesnional. MatrixStore is basic and immutable, PhysicalStore is more feature rich and mutable. Currently I really feel I should disconnect PhysicalStore from BasicArray, but the required code changes are a bit messy. I need a good day to do it. /Anders |