[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java Timer



"Peter" wrote:

> This is because the new JDK1.3 packages have introduced a Timer 
> class of their own in java.util.  Since it is common to be 
> importing both jcsp.lang.* and jcsp.util.*, there is a name 
> clash.  This could have been resolved by using fully qualified 
> names in our Java code - e.g.

Maybe name clashes are here to stay. Which "Peter"? It's different
with "Oyvind" - in English speaking countries :-)

In Sun's javax.realtime there's also a Timer class. It extends 
AsynchEvent. See http://www.rtj.org. (Could this be the same as 
the one you're referring to, Peter?)

In Java Consortium it's TimeoutEvent and PeriodicEvent.
http://www.j-consortium.org/ so no problem there.

But then, CSTimer is a good idea. CSProcess has the feature of
hiding a CSP in there, but CSTimer does not. Was the double effect
of CSProcess intended?

-- 
Oyvind
(------------------------------------------------------------------(
)       Oyvind Teig )          oyvind.teig@xxxxxxxxxxxx ) Tel: +47 )
( Navia Maritime AS (          oyvind.teig@xxxxxxxxxxxx ( 73581268 (
)    div. Autronica )                                   ) Fax: +47 )
(    7005 Trondheim (           http://www.autronica.no ( 73581001 (
)            Norway )                                   )          )
(------------------------------------------------------------------(
) 4May2000:Part of world's largest company in maritime electronics )
( http://www.kongsberg.com/        http://www.kongsberg-gruppen.no (
(------------------------------------------------------------------(
)                    http://www.autronica.no/pub/tech/rd/index.htm )
(------------------------------------------------------------------(