edu.cmu.cs.able.gauges.Siena.Demo
Class KXProbeHelper

java.lang.Object
  |
  +--edu.cmu.cs.able.gauges.Siena.Demo.KXProbeHelper
All Implemented Interfaces:
edu.cmu.cs.able.probebus.IProbeConsumer

public class KXProbeHelper
extends java.lang.Object
implements edu.cmu.cs.able.probebus.IProbeConsumer

Generic helper for KX compatible probes


Field Summary
static int ACTIVE
           
protected  java.lang.String configName
           
static int DEPLOYED
           
static int INSTALLED
           
protected  edu.cmu.cs.able.probebus.IProbeConsumer reportSubscriber
           
protected  java.lang.String systemID
           
protected  java.lang.String targets
           
static int UNDEPLOYED
           
 
Constructor Summary
KXProbeHelper(java.lang.String cn, java.lang.String sid, java.lang.String cl, edu.cmu.cs.able.probebus.IProbeConsumer rs, edu.cmu.cs.able.probebus.IProbeBus pb)
          Creates new KXProbeHelper
 
Method Summary
 void activateProbe()
           
 void deployProbe()
           
 void installProbe()
           
 void manageRemoval()
           
 void onProbeEvent(edu.cmu.cs.able.probebus.IProbeEvent e)
          The callback invoked when a probe reports a single event.
 void setDeployeState(int dState)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configName

protected java.lang.String configName

systemID

protected java.lang.String systemID

targets

protected java.lang.String targets

reportSubscriber

protected edu.cmu.cs.able.probebus.IProbeConsumer reportSubscriber

UNDEPLOYED

public static final int UNDEPLOYED

DEPLOYED

public static final int DEPLOYED

INSTALLED

public static final int INSTALLED

ACTIVE

public static final int ACTIVE
Constructor Detail

KXProbeHelper

public KXProbeHelper(java.lang.String cn,
                     java.lang.String sid,
                     java.lang.String cl,
                     edu.cmu.cs.able.probebus.IProbeConsumer rs,
                     edu.cmu.cs.able.probebus.IProbeBus pb)
Creates new KXProbeHelper
Method Detail

shutdown

public void shutdown()

setDeployeState

public void setDeployeState(int dState)

activateProbe

public void activateProbe()

installProbe

public void installProbe()

deployProbe

public void deployProbe()

onProbeEvent

public void onProbeEvent(edu.cmu.cs.able.probebus.IProbeEvent e)
The callback invoked when a probe reports a single event.
Specified by:
onProbeEvent in interface edu.cmu.cs.able.probebus.IProbeConsumer
Parameters:
e. - The event that was reported.

manageRemoval

public void manageRemoval()