Module class abstract
Lifecycle of modules
- Factory function is registered together with a module_class name
- System creates the module instance
- initialize is called which has to do the following: - parse properties to extract command line params - set up periodic functions - Set up channels for subscription and publishing
- When the module is no longer needed terminate is called
Constructors
- Module()
Properties
Methods
-
enqueueRPC(
DataPackage rpcRequest) → void -
getModuleId(
) → String -
initialize(
Properties properties) → void -
mapRemoteFunctionOfModule<
T> (String moduleId, String functionName, T returnType, List parameters) → RemoteFunction< T> -
mapRemoteFunctionOfRuntime<
T> (Runtime runtime, String functionName, T returnType, List parameters) → RemoteFunction< T> -
moduleError(
String msg) → void -
moduleFatal(
String msg) → void -
moduleInfo(
String msg) → void -
moduleWarning(
String msg) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish<
T> (String channelId, T instance) → Channel< T> -
registerPeriodicFunction(
String name, Duration period, RegisteredCallback callback) → void -
registerRemoteFunction<
T> (String functionName, Function function, T returnType, List parameters) → bool -
registerScheduledFunction(
String name, DateTime dateTime, RegisteredCallback callback) → void -
start(
Properties properties, RemoteFunctionHandler remoteFunctionHandler, StreamController< DataPackage> outputController) → void -
subscribe<
T> (String channelId, T instance, ChannelCallback< T> callback) → Channel<T> -
terminate(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterPeriodicFunction(
String name) → void -
unregisterScheduledFunction(
String name) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited