com.isti.trinetwatch.collectionAgentSim
Class CaToS_dynp

java.lang.Object
  extended by _PushSupplierImplBase
      extended by com.isti.trinetwatch.collectionAgentSim.CaToS_dynp
All Implemented Interfaces:
java.lang.Runnable

public class CaToS_dynp
extends _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.


Constructor Summary
CaToS_dynp(org.omg.CORBA.ORB orb, com.ooc.CORBA.BOA boa, PushConsumer sConsumer, CollectionAgentSim caSim)
          Creates an object of CaToS_dynp.
 
Method Summary
 void disconnect_push_supplier()
          Disconnect from the event channel.
static java.lang.String getTimeStampParamName()
          Get the time stamp parameter name.
 void run()
          In it's own thread this method sends simulated (fake) information about some real field stations.
static void setTimeStampParamName(java.lang.String s)
          Set the time stamp parameter name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaToS_dynp

CaToS_dynp(org.omg.CORBA.ORB orb,
           com.ooc.CORBA.BOA boa,
           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.


getTimeStampParamName

public static java.lang.String getTimeStampParamName()
Get the time stamp parameter name.

Returns:
the time stamp parameter name or empty string if none.

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

setTimeStampParamName

public static void setTimeStampParamName(java.lang.String s)
Set the time stamp parameter name.

Parameters:
s - the time stamp parameter name or empty string if none.