Package ptolemy.domains.dde.kernel

Examples of ptolemy.domains.dde.kernel.TimeKeeper


                        for (int l = 0; l < outReceivers[k].length; l++) {
                            DDEReceiver outReceiver = (DDEReceiver) outReceivers[k][l];
                            Thread thread = Thread.currentThread();

                            if (thread instanceof DDEThread) {
                                TimeKeeper timeKeeper = ((DDEThread) thread)
                                        .getTimeKeeper();
                                outReceiver.put(token, timeKeeper
                                        .getModelTime());
                            }
                        }
                    }
                }
View Full Code Here


                        _tokens[cnt] = receiver.get();

                        Thread thread = Thread.currentThread();

                        if (thread instanceof DDEThread) {
                            TimeKeeper timeKeeper = ((DDEThread) thread)
                                    .getTimeKeeper();
                            _threadTimes[cnt] = timeKeeper.getModelTime()
                                    .getDoubleValue();
                        }
                    }
                }
            }
View Full Code Here

                        for (int l = 0; l < outRcvrs[k].length; l++) {
                            DDEReceiver outRcvr = (DDEReceiver) outRcvrs[k][l];
                            Thread thr = Thread.currentThread();

                            if (thr instanceof DDEThread) {
                                TimeKeeper kpr = ((DDEThread) thr)
                                        .getTimeKeeper();
                                outRcvr.put(token, kpr.getModelTime());
                            }
                        }
                    }
                }
            }
View Full Code Here

            //System.out.println("##### " + cnt);
            boolean finished = false;
            Thread thread = Thread.currentThread();

            if (thread instanceof DDEThread) {
                TimeKeeper timeKeeper = ((DDEThread) thread).getTimeKeeper();
                _beforeTimes[cnt] = timeKeeper.getModelTime().getDoubleValue();

                Receiver[][] rcvrs = input.getReceivers();

                for (int i = 0; i < rcvrs.length; i++) {
                    for (int j = 0; j < rcvrs[i].length; j++) {
                        DDEReceiver rcvr = (DDEReceiver) rcvrs[i][j];

                        if (rcvr.hasToken()) {
                            // System.out.println("#####");
                            System.out
                                    .println("#####Past DDEGetNToken.rcvr.hasToken()");

                            // System.out.println("#####");
                            _tokens[cnt] = rcvr.get();

                            _afterTimes[cnt] = timeKeeper.getModelTime()
                                    .getDoubleValue();
                            cnt++;
                            j = rcvrs[i].length + 1;
                            finished = true;
                        }
View Full Code Here

TOP

Related Classes of ptolemy.domains.dde.kernel.TimeKeeper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.