- if(actualIndex>=maximumIndex)
- actualIndex=maximumIndex-1;
-
-
- }
- /*
- * change the actual index by decreasing
- * the index until zero by the decreaseValue
- */
- void ConceptInstantHandler::previousIndex()
- {
- //just plus plus
- if(mode==PLUS_PLUS)
- actualIndex-=decreaseValue;
-
- else
- actualIndex=(int)actualTime*scaleTime;
-
- if(actualIndex<0)
- actualIndex=0;
-
- }
-
- //====== INQUIRY =========
- /*
- * @return name
- */
- std::string ConceptInstantHandler::getName()
- {
- return this->name;
- }
- /*
- * @return PositionInReproduction
- */
- int ConceptInstantHandler::getPosition()
- {
- return this->positionInReproduction;
- }
- /*
- * @return mode
- */
- int ConceptInstantHandler::getMode()
- {
- return this->mode;
- }
- /*
- * @return increaseValue
- */
- int ConceptInstantHandler::getIncreaseValue()
- {
- return this->increaseValue;
- }
-
- /*
- * @return decreaseValue
- */
- int ConceptInstantHandler::getDecreaseValue()
- {
- return this->decreaseValue;
- }
-
- /*
- * @return indexInInstant
- */
- int ConceptInstantHandler::getIndexInInstant()
- {
- return this->indexInInstant;
- }
- /*
- * @return actualIndex
- */
- int ConceptInstantHandler::geActualIndex()
- {
- return actualIndex;
- }
- /*
- * @return maximumIndex
- */
-
- int ConceptInstantHandler::getMaximumIndex()
- {
- return maximumIndex;
- }
- /*
- * @return timeReproduction
- */
- double ConceptInstantHandler::getTimeReproduction()
- {
- return timeReproduction;
- }
- /*
- * @return scaleTime
- */
- double ConceptInstantHandler::getScale()
- {
- return scaleTime;
- }
- /*
- * if the actual index is not the maximum index
- */
- bool ConceptInstantHandler::hasNextIndex()
- {
- if(actualIndex<maximumIndex-1)
- return true;
- else return false;
- }
- /*
- * if the actual index is not zero
- */
- bool ConceptInstantHandler::hasPreviousIndex()
- {
- if(actualIndex>0)
- return true;
- else return false;
- }
- /*
- * Get initial time
- */
- double ConceptInstantHandler::getInitialTime()
- {
- return this->initialTime;
- }
+ if(actualIndex>=maximumIndex)
+ actualIndex=maximumIndex-1;
+ }
+ /*
+ * change the actual index by decreasing
+ * the index until zero by the decreaseValue
+ */
+ void ConceptInstantHandler::previousIndex()
+ {
+ //just plus plus
+ if(mode==PLUS_PLUS)
+ actualIndex-=decreaseValue;
+
+ else
+ actualIndex=(int)actualTime*scaleTime;
+
+ if(actualIndex<0)
+ actualIndex=0;
+
+ }
+
+ //====== INQUIRY =========
+ /*
+ * @return name
+ */
+ std::string ConceptInstantHandler::getName()
+ {
+ return this->name;
+ }
+ /*
+ * @return PositionInReproduction
+ */
+ int ConceptInstantHandler::getPosition()
+ {
+ return this->positionInReproduction;
+ }
+ /*
+ * @return mode
+ */
+ int ConceptInstantHandler::getMode()
+ {
+ return this->mode;
+ }
+ /*
+ * @return increaseValue
+ */
+ int ConceptInstantHandler::getIncreaseValue()
+ {
+ return this->increaseValue;
+ }
+
+ /*
+ * @return decreaseValue
+ */
+ int ConceptInstantHandler::getDecreaseValue()
+ {
+ return this->decreaseValue;
+ }
+
+ /*
+ * @return indexInInstant
+ */
+ int ConceptInstantHandler::getIndexInInstant()
+ {
+ return this->indexInInstant;
+ }
+ /*
+ * @return actualIndex
+ */
+ int ConceptInstantHandler::geActualIndex()
+ {
+ return actualIndex;
+ }
+ /*
+ * @return maximumIndex
+ */
+
+ int ConceptInstantHandler::getMaximumIndex()
+ {
+ return maximumIndex;
+ }
+ /*
+ * @return timeReproduction
+ */
+ double ConceptInstantHandler::getTimeReproduction()
+ {
+ return timeReproduction;
+ }
+ /*
+ * @return scaleTime
+ */
+ double ConceptInstantHandler::getScale()
+ {
+ return scaleTime;
+ }
+ /*
+ * if the actual index is not the maximum index
+ */
+ bool ConceptInstantHandler::hasNextIndex()
+ {
+ if(actualIndex<maximumIndex-1)
+ return true;
+ else return false;
+ }
+ /*
+ * if the actual index is not zero
+ */
+ bool ConceptInstantHandler::hasPreviousIndex()
+ {
+ if(actualIndex>0)
+ return true;
+ else return false;
+ }
+ /*
+ * Get initial time
+ */
+ double ConceptInstantHandler::getInitialTime()
+ {
+ return this->initialTime;
+ }