Search the web
Sign In
New User? Sign Up
quo-users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[QUO] More than one instances of one contract-type?   Message List  
Reply | Forward Message #30 of 35 |
Re: [QUO] More than one instances of one contract-type?

Hello Michael,

MA> cool.

;-)

MA> Yes, it should be possible to have multiple contract instances of the
MA> same contract type in the same kernel. Are you using the C++ or JAVA kernel?

I'm using the JAVA kernel.

Several clients can subscribe to informations with there own specific
updaterate (millisec). Now, the contract compare the expected
updaterate with the measured updaterate and the delegate adapt the
callback, if the are different.

The creation of one delegate for each client-callback object works,
but the instantiated Qoskets in the delegates use the same contract
(every new created Qosket overides the old contract in the kernel with
a new one). I need one contract for each delegate.

A further problem for me is the publicity of local SysConds in contracts. Is
there another way to access to this SysConds in addition to probed
SysConds?


the contract:

contract UpdaterateMonitorContract (
syscond quo::ValueSC quo_sc::ValueSCImpl updateRate
//created in the Qosket with one ID for every delegate ... ??
)
{
syscond probe bqosket::UpdaterateQosket::UpdaterateProbe
timeDiff("QuotationTime");

region Expected (true) { }

region Unexpected ((long long)timeDiff != (long long)updateRate) { }
};



Sven

--
[To unsubscribe to this list send an email to "majdart@..."
with the following text in the BODY of the message "unsubscribe quo-users"]



Sat Aug 3, 2002 1:52 pm

sven@...
Send Email Send Email

Forward
Message #30 of 35 |
Expand Messages Author Sort by Date

Hello, i have wrote a Qosket with a simple contract. In the Application, i need one delegate for each client callback object. And each delegate should use it's...
Sven Harazim
sven@...
Send Email
Aug 1, 2002
8:26 am

Hi Sven, ... cool. ... Yes, it should be possible to have multiple contract instances of the same contract type in the same kernel. Are you using the C++ or...
Michael Atighetchi
matighet@...
Send Email
Aug 2, 2002
2:49 pm

Hello Michael, MA> cool. ;-) MA> Yes, it should be possible to have multiple contract instances of the MA> same contract type in the same kernel. Are you using...
Sven Harazim
sven@...
Send Email
Aug 3, 2002
1:57 pm

... If you give the contracts unique names, everything should work as you want it to. ... It's possible if the syscond itself knows how to call out to some...
R Shapiro
rshapiro@...
Send Email
Aug 3, 2002
7:19 pm

... Just to be completely clear, what I mean is that the qosket should request the kernel to create the syscond. Then the qosket should pass the reference in...
rshapiro@...
Send Email
Aug 4, 2002
5:22 am

RS> If you give the contracts unique names, everything should work as you RS> want it to. I hope we don't talk round each other. My contract is called...
Sven Harazim
sven@...
Send Email
Aug 4, 2002
3:54 pm

... There are two generated functions called 'initContract' in the skeleton: public Contract initContract(String name, QuoKernel(kernel); public Contract...
R Shapiro
rshapiro@...
Send Email
Aug 4, 2002
7:40 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help