solver  1.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Activity Class Referenceabstract

The base class incorporating common properties of robot operations and movements. More...

#include <RoboticLine.h>

+ Inheritance diagram for Activity:
+ Collaboration diagram for Activity:

Public Member Functions

 Activity (const uint32_t &aid)
 
uint32_t aid () const
 
std::string name () const
 
std::string description () const
 
bool lastInCycle () const
 
std::vector< Activity * > successors () const
 
std::vector< Activity * > predecessors () const
 
double minAbsDuration () const
 
double maxAbsDuration () const
 
virtual bool mandatory () const =0
 
virtual bool optional () const =0
 
virtual size_t numberOfModes () const =0
 
virtual Robotparent () const =0
 

Protected Member Functions

void name (const std::string &name)
 
void description (const std::string &description)
 
void lastInCycle (const bool &lastInCycle)
 
void addSuccessor (Activity *successor)
 
void addPredecessor (Activity *predecessor)
 
void minAbsDuration (const double &minAbsDuration)
 
void maxAbsDuration (const double &maxAbsDuration)
 
virtual void parent (Robot *parent)=0
 
virtual void freeAllocatedMemory ()=0
 

Protected Attributes

uint32_t mAid
 Identification of the activity.
 
bool mLastInCycle
 It determines whether the activity closes the robot cycle.
 
std::string mName
 Name of the activity.
 
std::string mDescription
 Description of the activity.
 
std::vector< Activity * > mSuccessors
 Successors of the activity.
 
std::vector< Activity * > mPredecessors
 Predecessors of the activity.
 
double mMinAbsDuration
 Minimal possible duration of the activity.
 
double mMaxAbsDuration
 Maximal possible duration of the activity.
 
RobotmParent
 Pointer to the parent, i.e. a robot performing this activity.
 

Friends

class Robot
 Allow the robot to set itself as a parent and free the memory of the activity.
 

Detailed Description

The base class incorporating common properties of robot operations and movements.

The abstract class incorporating the common properties of both types of the activity, i.e. StaticActivity and DynamicActivity. A robot operation, e.g. assembling or welding, can be considered either as a StaticActivity (robot is stationary), or it can be further decomposed into more dynamic and static activities, e.g. movements during welding, spot welding operations, to achieve higher accuracy of the model.

Definition at line 68 of file RoboticLine.h.


The documentation for this class was generated from the following file: