com.isti.trinetwatch.collectionAgentSim
Class CaToS_statp

java.lang.Object
  extended by _PushSupplierImplBase
      extended by com.isti.trinetwatch.collectionAgentSim.CaToS_statp

 class CaToS_statp
extends _PushSupplierImplBase

Class CaToS_statp passes all static parameters through the static parameter event channel to the NSI Server.


Constructor Summary
CaToS_statp(org.omg.CORBA.ORB orb, com.ooc.CORBA.BOA boa, PushConsumer sConsumer, CollectionAgentSim caSim)
          Creates a CaToS_statp object.
 
Method Summary
 void disconnect_push_supplier()
          Disconnect from the event channel.
 boolean sendAllStations()
          This method sends the static information for all the stations in the stations table over the event channel to the server.
 boolean sendStation(java.lang.String stationName)
          sendInfo sends the static information about any given station off through the static event channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaToS_statp

public CaToS_statp(org.omg.CORBA.ORB orb,
                   com.ooc.CORBA.BOA boa,
                   PushConsumer sConsumer,
                   CollectionAgentSim caSim)
Creates a CaToS_statp object.

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.


sendAllStations

public boolean sendAllStations()
This method sends the static information for all the stations in the stations table over the event channel to the server.

Returns:
true if everything went well, false otherwise.

sendStation

public boolean sendStation(java.lang.String stationName)
sendInfo sends the static information about any given station off through the static event channel.

Parameters:
s - A string. If it is the string "SP_GET_ALL" the static information for all stations will be sent throught the static parameter event channel.
Returns:
A boolean return. True if successful. False otherwise.