[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[dsdp-dd-dev] RE: register event generation
|
Title: Hello
Hi
Randy
Actually signature was a little misleading with variable name
used
void
writeRegister(IRegisterGroupDMContext groupDmc, IDMContext<?> regCtx,
String regValue, String formatId, RequestMonitor rm);
regCtx
used here actually means FrameContext. For retrieving registers, frame is
important and that's what I found missing in the signature so I added extra
context IRegisterGroupDMContext and used IDMContext<?> for frame.
Sorry
for not explaining the issue. Actually there is a discussion on this one in Bugzilla
(Bug No 159693) where you have been assigned an action point
:).
I guess you
haven't seen it.
I
could have used the following signature also. It is more generic than the above
one.
void writeRegister( IDMContext<?> ctxt1,
IDMContext<?> ctxt2, String
regValue, String formatId, RequestMonitor rm);
Point
was to be able to pass 2 contexts instead of one since one is not
sufficient
Earlier signature was
void
writeRegister(IDMContext<?> regCtx,
String regValue, String formatId, RequestMonitor rm);
where
ctxt passed shd be RegisterGroupDMC which contains RegisterDMC.
We can
take this issue on Tuesday.
PS:
Mailing list has not been updated since October 3. Do you have any idea about it
?
/ Veenu
Veenu
This would be incorrect. I assume you are
adding the groupDmc so as to be able to find the
group the register is in.
The regDmc should have as its parent a dmc
which is of type IRegisterGroupDMContext.
This is done when you construct the
register DMC.
If you follow your flow then you would
have to add a group context and a register context to
the function.
So here are the relationships as I create
them in my commercial
For Group DMC
GroupDMC <-- ExecutionDMC <-- SymbolDmc
For Register DMC
RegDMC
<-- GroupDMC <-- ExecutionDMC <-- SymbolDmc
For BitFieldDMC
BitFieldDMC <-- RegDMC <-- GroupDMC <-- ExecutionDMC <--
SymbolDmc
So in the case you mentioned in that
routine I get the Group DMC from the Register DMC by doing
the following
MIRegisterGroupDMC groupDmc =
DMContexts.getAncestorOfType(registerDmc, MIRegisterGroupDMC.class);
where MIRegisterGroupDMC is a class which implements
IRegisterGroupDMContext :
public static class MIRegisterGroupDMC extends
AbstractDMContext<IRegisterGroupDMData> implements IRegisterGroupDMContext
{
If you want please call me and I will be glad to go
over this with you 781-364-2226.
Randy
Hi
Randy
Thanx
for the code. It's working with the event.
For
writing register I had to make a small change in IRegisters interface for
writeRegister method.
void
writeRegister(IRegisterGroupDMContext groupDmc, IDMContext<?> regCtx,
String regValue, String formatId, RequestMonitor rm);
Do you
have any comments on this ? I plan to check in the changes
/ Veenu
Veenu
Attached is the code in out commercial
register service for generating events.
randy