Closed hengxin closed 11 years ago
WritePool contains all the distinct WRITE operations in a BasicObservation (including both ReadIncObservation and ClosureObservation).
Put WritePool in the super class BasicObservation
BasicProcess will use the field, without reference to BasicObservation; To overcome this, BasicProcess holds a reference to BasicObservation.
BasicObservation as a parameter of method instead of field of instance.
Check the whole "pipeline" of construct BasicObservation and its subclass including ClosureObservation and ReadIncObservation.
Problem:
WritePool contains all the distinct WRITE operations in a BasicObservation (including both ReadIncObservation and ClosureObservation).
Solution:
Put WritePool in the super class BasicObservation
Flaw:
BasicProcess will use the field, without reference to BasicObservation; To overcome this, BasicProcess holds a reference to BasicObservation.
Possible improvement:
BasicObservation as a parameter of method instead of field of instance.