obixserver.module
Class SimulatorModule

java.lang.Object
  extended by obixserver.module.AbstractBaseModule
      extended by obixserver.module.SimulatorModule
All Implemented Interfaces:
Service, Module

public class SimulatorModule
extends AbstractBaseModule

Sample module that simulates read-only and read/write object implementation as well as dynamic objects with changing values. It uses a pull model for updates, that is it uses proxies which are called by ObjBroker when a request comes in that may need an updated status. dynamicValues list implements objects that change and use the pull module mechanism to update repository at request time.


Field Summary
private  long bootTime
           
private  obix.Int realModuloMinute
           
private  obix.Real realSine
           
 
Fields inherited from class obixserver.module.AbstractBaseModule
properties
 
Constructor Summary
SimulatorModule()
           
 
Method Summary
 void init(obix.Obj parent)
          Initialize the module.
 void start()
          Starts the service.
 void stop()
          Stops the service.
 
Methods inherited from class obixserver.module.AbstractBaseModule
getBase, getBaseObj, getObjBroker, getObjResource, getProperty, loadObjFromResource, setBase, setBaseObj, setObjBroker, setObjResource, setProperty, term
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realSine

private obix.Real realSine

realModuloMinute

private obix.Int realModuloMinute

bootTime

private long bootTime
Constructor Detail

SimulatorModule

public SimulatorModule()
Method Detail

init

public void init(obix.Obj parent)
Description copied from interface: Module
Initialize the module. Resource will be allocated, etc.

Specified by:
init in interface Module
Overrides:
init in class AbstractBaseModule
Parameters:
parent - TODO

start

public void start()
Description copied from interface: Service
Starts the service.


stop

public void stop()
Description copied from interface: Service
Stops the service.



Copyright © 2006-2008 Peter Michalek All Rights Reserved.