aspose file tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Diagram for Poll Timer? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "Diagram for Poll Timer?" Watch "Diagram for Poll Timer?" New topic
Author

Diagram for Poll Timer?

Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
What sort of diagram should I use for a poll-timer?

So far, I've made an activity diagram for my poll timer. Is this fine?

Poll every 250 ms until a condition is met.

Should I use a different type of diagram? The timing diagram doesn't seem right, or I can't conceive how.

Please advise.

Thanks,

Garrett
[ August 03, 2007: Message edited by: Garrett Smith ]

comp.lang.javascript FAQ: http://jibbering.com/faq/
Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
Please tell me if this makes sense.

A poll-timer continually polls to see if a condition exists, then fires a signal when it the condition is found.



Resize kicks off the first timer and sets hasResize = true continually.
[ August 03, 2007: Message edited by: Garrett Smith ]
Gabriel Claramunt
Ranch Hand

Joined: May 26, 2007
Posts: 375
I think a State diagram will make more sense (basically will be the same drawing, just a different name )


Gabriel
Software Surgeon
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Well, who is the audience of the diagram, and why will they look at it?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
Originally posted by Ilja Preuss:
Well, who is the audience of the diagram, and why will they look at it?


It is for web developers / javascript hackers.

I put it on my site.

I want to get better at explaining these things. Sometimes people don't understand me.

Do people use activity diagram for threads?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Diagram for Poll Timer?
 
Similar Threads
Part II diagrams
Precision of BlockingQueue.poll timeout?
Long Polling
close pop up window from servlet
Compiler: "This method must return a result of type int" What to do?