nv-l
[Top] [All Lists]

RE: [nv-l] adding events to Netview

To: "'nv-l'" <nv-l@lists.tivoli.com>
Subject: RE: [nv-l] adding events to Netview
From: "Allison, Jason (JALLISON)" <JALLISON@arinc.com>
Date: Wed, 13 Nov 2002 08:55:34 -0500
95% all makes sense.

An exert from ovw.h:
 * Symbol status source types.
 *
 * Status is represented on a per symbol basis.  Thus, the status of an
 * object can be different for different symbols representing the object.
 * This allow the semantic context of a symbol in a particular submap to
 * determine its status.  In addition to status being per symbol, the
 * configuration of the status source is also per symbol.
 *
 * ovwObjectStatusSource - Status for the symbol is set based on the
 *      status of the object, which is set using OVwSetStatusOnObject().
 * ovwCompoundStatusSource - Status for the symbol is set based on the
 *      compound status of the object the symbol represents.  Compound
 *      status for the object is determined by the status of the symbols
 *      in the child submap of object, using built-in, user-configurable
 *      status propagation rules.
 * ovwSymbolStatusSource - Status for the symbol is set based on symbol-
 *      specific status, which is set using OVwSetStatusOnSymbol().
 *      (This allows applications to calculate their own compound status
 *      based on specific semantic rules in a particular context.)
-- Why did you chose ovwCompoundStatusSource?

"-- Your code extract
Is the ack submap something your code maintains?"
-- Thought I pulled all of that out of the snippet.  Yes, I wrote an app to
maintain a separate submap that contains all of the currently Ack'd Objects
with their own Symbol.  I ended up being very happy with it.  All dynamic,
happened on the fly, fun to watch.  I also added a pull-down to display/hide
the map.  This gave the operators a 'quick' look into the currently ack'd
objects.

"-- Our proposed approach
We're trying a different solution by generating our own event on
selecting node1 with a new "own-ack" menu option. We will set the status
source to symbol and set the colour to user1status - if we set it to
acknowledge everything will go green because ipmap jumps in and does
what it has to when acknowledge is used.

On our new "own-unack" menu option we will set the node1 status source
back
to compound.

Hopefully this strategy will work."
-- This sounds like fun, please keep the list in the loop on how it works
out.  The only potential problem I can think of is the API will not let you
set a symbols status that is currently a "reserved status", i.e. you cant
set a symbols status that is currently Acknowledged, hopefully this does not
apply to User1.  I am not sure how that will effect you, but something I
remember coming across, but ovwUnknownStatus represents Unacknowledged
State.


"The tricky thing looks to be how to find out the symbol id for node1
when netview just tells you the object that has been selected."
-- Good question.  I would assume the same way Netview knows which object to
do what with when you issue pull-down commands.

Best of luck,
JA

-- 
Robin
email: robin.james@thalesatm.com
tel:   +44 (0) 1633-862020
fax:   +44 (0) 1633-868313

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web