org.universAAL.samples.ctxtbus
Class CPublisher

Package class diagram package CPublisher
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Publisher
          extended by org.universAAL.middleware.context.ContextPublisher
              extended by org.universAAL.samples.ctxtbus.CPublisher

public class CPublisher
extends ContextPublisher


Field Summary
protected static int samples
           
protected static String URIROOT
           
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
protected CPublisher(ModuleContext context)
           
protected CPublisher(ModuleContext context, ContextProvider providerInfo)
           
 
Method Summary
 void communicationChannelBroken()
          Method to be called when the communication of the Publisher with the Context Bus is lost.
static ContextEvent getSample(int sample)
           
 long sendBurst(int size)
           
 void sendEventWithData()
           
 void sendSituation()
           
 long sendUniqueBurst(int size)
           
 
Methods inherited from class org.universAAL.middleware.context.ContextPublisher
busDyingOut, getMyID, publish
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

samples

protected static final int samples
See Also:
Constant Field Values

URIROOT

protected static final String URIROOT
See Also:
Constant Field Values
Constructor Detail

CPublisher

protected CPublisher(ModuleContext context,
                     ContextProvider providerInfo)

CPublisher

protected CPublisher(ModuleContext context)
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: ContextPublisher
Method to be called when the communication of the Publisher with the Context Bus is lost.

Specified by:
communicationChannelBroken in class ContextPublisher

sendBurst

public long sendBurst(int size)

sendUniqueBurst

public long sendUniqueBurst(int size)

getSample

public static ContextEvent getSample(int sample)

sendSituation

public void sendSituation()

sendEventWithData

public void sendEventWithData()


Copyright © 2014 universAAL Consortium. All Rights Reserved.