APC AP9212 User's Guide Page 37

  • Download
  • Add to my manuals
  • Print
  • Page
    / 147
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 36
37
public static final String KEY_OUTLET_1_STATE = "Outlet 1";
...
public static final String KEY_OUTLET_8_STATE = "Outlet 8";
...
// MasterswitchListener methods
public void outletStateChanged(int outlet, String newState) {
...
// Send a JASStatusMessage containing the new information to all clients
// on the masterswitch channel
JASStatusMessage msg = new JASStatusMessage();
Map map = msg.getValueMap();
map.clear();
map.put( keyForOutletState(outlet) , newState);
try {
masterswitchChannel.sendToAll( msg );
} catch (JSDTException e) {
log.log(Level.WARNING, "Failed to notify clients of Masterswitch state change",e);
}
}
Figure 4-8 Masterswitch message broadcasting
4.4.3 SP modifications
The APTSPClient will need to be modified to automatically join the CHANNEL_MASTERSWITCH
and enable SP clients to retrieve Masterswitch status. This is not currently implemented. A revised
apt_masterswitch command is proposed in Chapter 7.3.9.
4.5 Screenshots
Figure 4-9 Masterswitch user interface
Page view 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 146 147

Comments to this Manuals

No comments