obixserver.module
Class SimulatorModule
java.lang.Object
obixserver.module.AbstractBaseModule
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.
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 |
realSine
private obix.Real realSine
realModuloMinute
private obix.Int realModuloMinute
bootTime
private long bootTime
SimulatorModule
public SimulatorModule()
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.