- {
- public:
- //===== CONSTANTS ========
- /*
- * if the concept is being reproduced in real time
- */
- const static int REAL_TIME=1;
- /*
- * if the concept is being reproduced by doing
- * plus plus to its indexes
- */
- const static int PLUS_PLUS=2;
-
-
- //====== LIFECYCLE ========
- ConceptInstantHandler(std::string name,int mode,int positionInReproduction);
- ~ConceptInstantHandler();
- //====== OPERATIONS =======
- /*
- * change the actual index by increasing
- * the index until the maximum by the increaseValue
- */
- void nextIndex();
- /*
- * change the actual index by decreasing
- * the index until zero by the decreaseValue
- */
- void previousIndex();
-
-
- //====== INQUIRY =========
- /*
- * @return name
- */
- std::string getName();
- /*
- * @return PositionInReproduction
- */
- int getPosition();
- /*
- * @return mode
- */
- int getMode();
- /*
- * @return increaseValue
- */
- int getIncreaseValue();
-
- /*
- * @return decreaseValue
- */
- int getDecreaseValue();
-
- /*
- * @return indexInInstant
- */
- int getIndexInInstant();
- /*
- * @return actualIndex
- */
- int geActualIndex();
- /*
- * @return maximumIndex
- */
-
- int getMaximumIndex();
- /*
- * @return timeReproduction
- */
- double getTimeReproduction();
- /*
- * @return scaleTime
- */
- double getScale();
-
- /*
- * if the actual index is not the maximum index
- */
- bool hasNextIndex();
- /*
- * if the actual index is not zero
- */
- bool hasPreviousIndex();
-
- /*
- * Get initial time
- */
- double getInitialTime();
-
-
- //====== ACCESS ==========
- /*
- * Sets the name of the concept
- * @param name, new name
- */
- void setName(std::string name);
- /*
- * Sets the position of the concept
- * @param position
- */
- void setPosition(int position);
- /*
- * Sets the mode of the concept
- * @param mode, new mode= REAL_TIME or
- * PLUS_PLUS
- */
- void setMode(int mode);
- /*
- * Set Increase of the concept
- * @param increaseValue
- */
- void setIncreaseValue(int increaseValue);
-
- /*
- * Set decrease of the concept
- * @param decreaseValue
- */
- void setDecreaseValue(int decreaseValue);
-
- /*
- * Sets the index of the concept in the instant
- * @param indexInInstant
- */
- void setIndexInInstant(int indexInInstant);
- /*
- * Sets sets the maximum value
- * @param maximumIndex
- */
- void setMaximumIndex(int maximumIndex);
- /*
- * set the actualIndex
- * @param index
- */
- void setActualIndex(int index);
- /*
- * set the timeReproduction
- * @param time
- */
- void setTimeReproduction(double time);
- /*
- * set the scaleTime
- * @param scale
- */
- void setScale(double scale);
- /*
- * set the actualTime
- * @param actualTime
- */
- void setActualTime(double actualTime);
- /*
- * reset the initial time
- */
- void resetInitialTime();
- /*
- * Sets the initial time
- */
- void setInitialTime(double time);
-
-
- private:
-
- //======= ATTRIBUTES=======
-
- /*
- * Name of the concept
- */
- std::string name;
- /*
- * Mode of changing the instant
- * REAL_TIME
- * PLUS_PLUS
- */
- int mode;
-
- /*
- * position in the reproduction
- */
- int positionInReproduction;
- /*
- * Increment for an instant
- * for default is 1
- */
- int increaseValue;
- /*
- * Decrease for an instant
- * for default is 1
- */
- int decreaseValue;
- /*
- * index in Instant
- */
- int indexInInstant;
- /*
- * index that it is
- */
- int actualIndex;
- /*
- * maximum index that can have in the instant
- */
- int maximumIndex;
- /*
- * Time in miliseconds of the reproduction
- */
- double timeReproduction;
- /*
- * Scale use for calculate the index
- * of the concept according to the time of reproduction
- * defined in timeReproduction
- * scaleTime=maximumIndex/timeReproduction
- */
- double scaleTime;
- /*
- * actual time of the reproduction
- * is in miliseconds
- */
- double actualTime;
- /*
- * Initial time
- * is in miliseconds
- */
- double initialTime;
-
-
-
- //====== PRIVATE METHODS=========
-
-
- };
+{
+public:
+ //===== CONSTANTS ========
+ /*
+ * if the concept is being reproduced in real time
+ */
+ const static int REAL_TIME=1;
+ /*
+ * if the concept is being reproduced by doing
+ * plus plus to its indexes
+ */
+ const static int PLUS_PLUS=2;
+
+
+ //====== LIFECYCLE ========
+ ConceptInstantHandler(std::string name,int mode,int positionInReproduction);
+ ~ConceptInstantHandler();
+ //====== OPERATIONS =======
+ /*
+ * change the actual index by increasing
+ * the index until the maximum by the increaseValue
+ */
+ void nextIndex();
+ /*
+ * change the actual index by decreasing
+ * the index until zero by the decreaseValue
+ */
+ void previousIndex();
+
+ //====== INQUIRY =========
+ /*
+ * @return name
+ */
+ std::string getName();
+ /*
+ * @return PositionInReproduction
+ */
+ int getPosition();
+ /*
+ * @return mode
+ */
+ int getMode();
+ /*
+ * @return increaseValue
+ */
+ int getIncreaseValue();
+
+ /*
+ * @return decreaseValue
+ */
+ int getDecreaseValue();
+
+ /*
+ * @return indexInInstant
+ */
+ int getIndexInInstant();
+ /*
+ * @return actualIndex
+*/
+ int geActualIndex();
+ /*
+ * @return maximumIndex
+ */
+
+ int getMaximumIndex();
+ /*
+ * @return timeReproduction
+ */
+ double getTimeReproduction();
+ /*
+ * @return scaleTime
+ */
+ double getScale();
+
+ /*
+ * if the actual index is not the maximum index
+ */
+ bool hasNextIndex();
+ /*
+ * if the actual index is not zero
+ */
+ bool hasPreviousIndex();
+
+ /*
+ * Get initial time
+ */
+ double getInitialTime();
+
+
+ //====== ACCESS ==========
+ /*
+ * Sets the name of the concept
+ * @param name, new name
+ */
+ void setName(std::string name);
+ /*
+ * Sets the position of the concept
+ * @param position
+ */
+ void setPosition(int position);
+ /*
+ * Sets the mode of the concept
+ * @param mode, new mode= REAL_TIME or
+ * PLUS_PLUS
+ */
+ void setMode(int mode);
+ /*
+ * Set Increase of the concept
+ * @param increaseValue
+ */
+ void setIncreaseValue(int increaseValue);
+
+ /*
+ * Set decrease of the concept
+ * @param decreaseValue
+ */
+ void setDecreaseValue(int decreaseValue);
+
+ /*
+ * Sets the index of the concept in the instant
+ * @param indexInInstant
+ */
+ void setIndexInInstant(int indexInInstant);
+ /*
+ * Sets sets the maximum value
+ * @param maximumIndex
+ */
+ void setMaximumIndex(int maximumIndex);
+ /*
+ * set the actualIndex
+ * @param index
+ */
+ void setActualIndex(int index);
+ /*
+ * set the timeReproduction
+ * @param time
+ */
+ void setTimeReproduction(double time);
+ /*
+ * set the scaleTime
+ * @param scale
+ */
+ void setScale(double scale);
+ /*
+ * set the actualTime
+ * @param actualTime
+ */
+ void setActualTime(double actualTime);
+ /*
+ * reset the initial time
+ */
+ void resetInitialTime();
+ /*
+ * Sets the initial time
+ */
+ void setInitialTime(double time);
+
+
+ private:
+
+ //======= ATTRIBUTES=======
+
+ /*
+ * Name of the concept
+ */
+ std::string name;
+ /*
+ * Mode of changing the instant
+ * REAL_TIME
+ * PLUS_PLUS
+ */
+ int mode;
+
+ /*
+ * position in the reproduction
+ */
+ int positionInReproduction;
+ /*
+ * Increment for an instant
+ * for default is 1
+ */
+ int increaseValue;
+ /*
+ * Decrease for an instant
+ * for default is 1
+ */
+ int decreaseValue;
+ /*
+ * index in Instant
+ */
+ int indexInInstant;
+ /*
+ * index that it is
+ */
+ int actualIndex;
+ /*
+ * maximum index that can have in the instant
+ */
+ int maximumIndex;
+ /*
+ * Time in miliseconds of the reproduction
+ */
+ double timeReproduction;
+ /*
+ * Scale use for calculate the index
+ * of the concept according to the time of reproduction
+ * defined in timeReproduction
+ * scaleTime=maximumIndex/timeReproduction
+ */
+ double scaleTime;
+ /*
+ * actual time of the reproduction
+ * is in miliseconds
+ */
+ double actualTime;
+ /*
+ * Initial time
+ * is in miliseconds
+ */
+ double initialTime;
+
+ //====== PRIVATE METHODS=========
+
+
+ };