com.isti.trinetwatch.controlAgentSim
Class LevChange_provider

java.lang.Object
  extended by _PushSupplierImplBase
      extended by com.isti.trinetwatch.controlAgentSim.LevChange_provider

public class LevChange_provider
extends _PushSupplierImplBase

Class LevChange_provider responds to requests for changing the usage level of a given station.


Constructor Summary
LevChange_provider(org.omg.CORBA.ORB orb, com.ooc.CORBA.BOA boa, PushConsumer sConsumer)
          Creates an object of LevChange_provider.
 
Method Summary
 void disconnect_push_supplier()
          Disconnect from the event channel.
 void sendMessage(java.lang.String stationName, int uLevel)
          send a message to the collection agent informing the collection agent of a change in the usage level for the given station.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevChange_provider

LevChange_provider(org.omg.CORBA.ORB orb,
                   com.ooc.CORBA.BOA boa,
                   PushConsumer sConsumer)
Creates an object of LevChange_provider.

Parameters:
orb - A handle to the orb which controls the event channels.
boa - A handle to the boa being used.
sConsumer - A handle to the channel to be used.
Method Detail

disconnect_push_supplier

public void disconnect_push_supplier()
Disconnect from the event channel.


sendMessage

public void sendMessage(java.lang.String stationName,
                        int uLevel)
send a message to the collection agent informing the collection agent of a change in the usage level for the given station. The message format is: "MMMMMM:SSSSS:UU" where MMMMMM is the message type (USAGE_CHANGE), SSSSS is the staion name, and UU is the new usage level.

Parameters:
stationName - the name of the station whose usage level was changed
uLevel - the integer value of the new usage level