RoDaFlow is a framework for development of dataflow network agents in "Smart-M3":http://sourceforge.net/projects/smart-m3/ with substitution mechanism.
It allows to easily create primary and substitute agents for dataflow network implementation on Smart-M3 platform. The usage of the RoDaFlow framework is simple: You just need to implement the program of the agent, which determines what information is processed by the agent and the way of this processing.
To create primary agent:
implement the AgentProgram interface, which represents the program of the agent;¶
create an instance of the PrimaryAgent class passing all the needed parameters: the URI of the agent, implemented program, type and code of the substitute program, address and name of the SIB;¶
call the joinSIB method on created PrimaryAgent class instance.¶
To create substitute agent:
implement the SubstituteAgentProgram interface, which represents the program of the agent and depends on gathered from substituted agent code;¶
create an instance of the SubstituteAgent class passing all the needed parameters: type of the substitute program, implemented program, address and name of the SIB;¶
call the joinSIB method on created SubstituteAgent class instance.¶
Both primary and substitute agents can be shutdowned by calling the shutdown method.
In addition, the PrimaryAgent class contains the suspendOperation method that deactivates the agent provoking it to be substituted.
The RoDaFlow framework is available "here":https://yar.fruct.org/attachments/download/1015/rodaflow.jar
Send your feedback about the RoDaFlow framework to Denis Laure by e-mail: email@example.com.