com.isti.trinetwatch.collectionAgentSim
Class CaToS_dynp

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.CORBA.DynamicImplementation
          extended byorg.omg.CosEventComm._PushSupplierImplBase
              extended bycom.isti.trinetwatch.collectionAgentSim.CaToS_dynp
All Implemented Interfaces:
org.omg.CORBA.Object, org.omg.CosEventComm.PushSupplier, java.lang.Runnable

public class CaToS_dynp
extends org.omg.CosEventComm._PushSupplierImplBase
implements java.lang.Runnable

Class CaToS_dynp sends the changing data of the dynamic parameters through the dynamic parameter event channel to the NSI Server. Since this class is part of the CA simulator fake data is produced here.


Field Summary
 
Fields inherited from class org.omg.CosEventComm._PushSupplierImplBase
 
Constructor Summary
(package private) CaToS_dynp(org.omg.CORBA.ORB orb, com.ooc.CORBA.BOA boa, org.omg.CosEventComm.PushConsumer sConsumer, CollectionAgentSim caSim)
          Creates an object of CaToS_dynp.
 
Method Summary
 void disconnect_push_supplier()
          Disconnect from the event channel.
 void run()
          In it's own thread this method sends simulated (fake) information about some real field stations.
 
Methods inherited from class org.omg.CosEventComm._PushSupplierImplBase
_ids, invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

CaToS_dynp

CaToS_dynp(org.omg.CORBA.ORB orb,
           com.ooc.CORBA.BOA boa,
           org.omg.CosEventComm.PushConsumer sConsumer,
           CollectionAgentSim caSim)
Creates an object of CaToS_dynp.

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.

Specified by:
disconnect_push_supplier in interface org.omg.CosEventComm.PushSupplier

run

public void run()
In it's own thread this method sends simulated (fake) information about some real field stations. It produces some random numbers and sends these as the changing information.

Specified by:
run in interface java.lang.Runnable