9.2.3 Designing CPU Card

 

You have learnt the purpose of "CPUCard" screen in the Designing Shelf Screen topic. This card will be held by the Slot Holder panels present in the Shelf Screen at run time if the Web NMS Database has the card MO of the type property "CPUCard".  In this topic, you will learn to design the "CPUCard" screen with port components and a Status Icon bean components. Follow the steps given below to design the "CPUCard" screen.

 

Providing Port and Card Parameters

Providing Protocol Intelligence for Port Type

  1. Expand the "CPUCard" node to find a port node named "Port_0".

  2. Right-click the Port_0 node to get the Port Pop-up menu. Select the Modify menu item from the Pop-up to invoke Port Configuration dialog.

  3. Browse and select the "eboncpuport.png" for the property "Image File" in the "Component Properties". The image file can be found in images directory under <Client Builder Home> directory.

  4. Switch to "Protocol Properties" tab and change the "Polling Type" to Periodic.

  5. Load the com.adventnet.ebon.chassis.Port .xml device information file available in the <Client Builder Home>/mibs directory with following steps.

    6.  Select "status" node of the com.adventnet.ebon.chassis.Port .xml under the "properties" node.

    7.  Click the show button  to select the result method. From 'Result Method' list, select 'setIconResult' with the   'Prototype' 'public void setIconResult( String)'

 

    8. Click OK to close the Port Configuration dialog. In the Card Screen's Draw Area, you can find the Port components 'Port1' and 'Port2'.

 

    9. Right-click the "Port1" port component to get the Bean Pop-up menu. Select the Protocol Property Form-->Client_Port11 (the client property instance) from the Pop-up to invoke Client Property dialog. In the Client Property dialog all the field are inaccessible except the Index/Key field.

 

   10. Provide the value "currentManagedObjectName + "_Port1" in the Index/Key field,  because the Port's MO name is suffixed with the Card name. Click OK to close the Client Property dialog.

    11. Repeat the above steps 9 and 10 for the “Port2” to provide the index value "currentManagedObjectName + "_Port2".

 

Dropping Status Icon Bean and Configuring Protocol Intelligence

 

StatusIcon1.setIconResult(status);

StatusIcon1.setToolTipText(status);

 

 

Bean Component

Bounds

StatusIcon1

15,45,35,20

Port1

20,120,25,30

Port2

20,215,25,30

 

 The design of "CPUCard" screen is complete.

 

 



Copyright © 2009 ZOHO Corp. All Rights Reserved.