#include <iostream>
{
public:
{
std::cout << "Hello, world! This is SObjectizer v.5 ("
}
{
std::cout << "Bye! This was SObjectizer v.5." << std::endl;
}
};
int main()
{
try
{
{
} );
}
catch( const std::exception & ex )
{
std::cerr << "Error: " << ex.what() << std::endl;
return 1;
}
return 0;
}
A helper header file for including all public SObjectizer stuff.
agent_t(environment_t &env)
Constructor.
virtual void so_evt_finish()
Hook of agent finish in SObjectizer.
environment_t & so_environment() const noexcept
Access to the SObjectizer Environment which this agent is belong.
virtual void so_evt_start()
Hook on agent start inside SObjectizer.
coop_handle_t register_agent_as_coop(std::unique_ptr< A > agent)
Register single agent as a cooperation.
std::unique_ptr< Agent > make_agent(Args &&... args)
Helper method for simplification of agents creation.
void stop() noexcept
Send a shutdown signal to the Run-Time.
void launch(Init_Routine &&init_routine)
Launch a SObjectizer Environment with default parameters.