Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computer code and special relativity
Message
From
16/12/2005 19:26:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
16/12/2005 12:31:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01077253
Message ID:
01078869
Views:
59
>>>So if the particle has the observe method, how does a human being like myself observe?
>>
>>
procedure observe()
>>oObservation=create("empty")
>>for each oParticle in this.collParticles
>>   oParticle.observe()
>>  addProperty(oObservation, oParticle.cPropName, oParticle.uPropValue)
>>endfor
>>return oObservation
>>
>>In the universe where observer is also a particle, particle would be a collection. In the other one, particle can be anything, but observer is a collection (or something more complex), or has a collection of its own particles.
>
>
>I take it the above method belongs to an Observer class?

Yes, that's the working assumption.

>If so, how does the collection of particles get on the observer class?

This becomes interesting... how about during its .init()? If we say that observer is a set of particles (apart from its other PEMs), if it has none it doesn't exist, therefore
procedure init   && observer class
if not this.AddParticleCollection()
   return .f.   && harakiri
endif
>It seems to me that if the observer already knows about the particles it is observing, than it has already observed them.

Contradicts your assumption that the particles have their own .observe() method - so the observer wouldn't observe directly, it would poll its particles.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform