Esempio n. 1
0
/** Constructor.
 * Use this constructor if there should be no input syncpoint, but only an output
 * syncpoint.
 * @param identifier_out identifier of the output syncpoint
 */
SyncPointAspect::SyncPointAspect(std::string identifier_out)
: type_in_(SyncPoint::NONE),
  identifier_in_(""),
  identifier_out_(identifier_out),
  sp_in_(NULL),
  sp_out_(NULL)
{
	add_aspect("SyncPointAspect");
	has_input_syncpoint_  = false;
	has_output_syncpoint_ = true;
}
Esempio n. 2
0
/** Constructor.
 * Use this constructor if there should be an input syncpoint. The input syncpoint
 * will be waited for before every loop.
 * @param type_in type of the input syncpoint
 * @param identifier_in identifier of the input syncpoint
 * @param identifier_out identifier of the output syncpoint.
 *          If this identifier is empty, no output syncpoint will be used.
 */
SyncPointAspect::SyncPointAspect(SyncPoint::WakeupType type_in,
                                 std::string           identifier_in,
                                 std::string           identifier_out /* = "" */)
: type_in_(type_in),
  identifier_in_(identifier_in),
  identifier_out_(identifier_out),
  sp_in_(NULL),
  sp_out_(NULL)
{
	add_aspect("SyncPointAspect");
	has_input_syncpoint_  = (identifier_in != "");
	has_output_syncpoint_ = (identifier_out != "");
}
Esempio n. 3
0
/** Constructor.
 * @param env_name CLIPS environment name, the environment name is
 * unique, if you request an environment already occupied by another
 * the @p exclusive parameter defines whether an error is thrown or if
 * the environment is shared
 * @param log_component_name a component name that is shown in log
 * messages. It is strongly recommended to set this to something
 * unique.  If left out will be set to "CLIPS[env_name]".
 */
CLIPSAspect::CLIPSAspect(const char *env_name, const char *log_component_name)
  : clips_env_name(env_name),
    CLIPSAspect_log_component_name_(log_component_name)
{
  add_aspect("CLIPSAspect");
}
Esempio n. 4
0
/** Constructor.
 * @param timesource the time source to provide to Fawkes
 */
TimeSourceAspect::TimeSourceAspect(TimeSource *timesource)
{
  add_aspect("TimeSourceAspect");
  __time_source = timesource;
}
Esempio n. 5
0
/** Constructor.
 * @param logger Logger to add to the Fawkes loggers
 */
LoggerAspect::LoggerAspect(Logger *logger)
{
	add_aspect("LoggerAspect");
	logger_ = logger;
}
Esempio n. 6
0
/** Constructor.
 * @param group_name Gossip group to join and communicate with.
 */
GossipAspect::GossipAspect(const char *group_name)
  : GossipAspect_group_name_(group_name)
{
  add_aspect("GossipAspect");
}
Esempio n. 7
0
/** Constructor. */
CLIPSManagerAspect::CLIPSManagerAspect()
{
  add_aspect("CLIPSManagerAspect");
}