18 #include "repast_hpc/RepastProcess.h"
19 #include <boost/serialization/access.hpp>
33 template<
class Archive>
34 void serialize(Archive & ar,
const unsigned int version ) {
79 Activity(
char aType,
long node,
bool start,
float startTime);
90 Activity(
long nodeId,
int nextActivityType);
99 Activity(
long startNode,
long endNode);
void setDurationTrip(float durationTrip)
Set the duration of the trip performed to reach the activity localization.
Definition: Activity.hpp:212
void serialize(Archive &ar, const unsigned int version)
Definition: Activity.hpp:34
Activity()
Constructor.
Definition: Activity.cpp:16
A class representing activities.
Definition: Activity.hpp:27
int getTypeNum() const
Return the activity type (integer coding).
Definition: Activity.hpp:156
float _dur_trip
duration of the trip to reach activity localization (in seconds)
Definition: Activity.hpp:50
void setDistance(float distance)
Set the distance performed to reach the activity localization.
Definition: Activity.hpp:180
virtual ~Activity()
Destructor.
Definition: Activity.hpp:102
long getNodeId() const
Return the node id where the activity is performed.
Definition: Activity.hpp:140
Random number generators and related tools.
long _nodeId
id of the node where the activity occurs.
Definition: Activity.hpp:51
void setEndTime(float endTime)
Set the end time of an activity.
Definition: Activity.hpp:116
void setType(char type)
Set the character type of the activity.
Definition: Activity.hpp:132
float _end_time
end time of the activity (in seconds).
Definition: Activity.hpp:47
void setDuration(float duration)
Set the duration of the trip to reach the activity localization.
Definition: Activity.hpp:196
float getDistance() const
Return the distance performed to reach the activity localization.
Definition: Activity.hpp:172
Data related class and methods.
float _distance
distance to reach the activity (in meters).
Definition: Activity.hpp:49
int _type_num
activity type (numerical encoding).
Definition: Activity.hpp:46
void setTypeNum(int typeNum)
Set the activity type (integer coding).
Definition: Activity.hpp:164
float getEndTime() const
Return the end time of the activity.
Definition: Activity.hpp:108
char getType() const
Return the character type of the activity.
Definition: Activity.hpp:124
float _duration
duration of the activity (in seconds).
Definition: Activity.hpp:48
Road network related class and methods (Heap, Node, Link and Network classes).
float getDurationTrip() const
Return the duration of the trip performed to reach the activity localization.
Definition: Activity.hpp:204
friend class boost::serialization::access
Definition: Activity.hpp:29
char _type
activity type (char encoding).
Definition: Activity.hpp:45
float getDuration() const
Return the duration of the activity.
Definition: Activity.hpp:188
void setNodeId(long nodeId)
Set the node id where the activity is performed.
Definition: Activity.hpp:148