// SYSTEM INCLUDES /* #include #include */ // PROJECT INCLUDES // LOCAL INCLUDES // FORWARD REFERENCES #ifndef __INSTANT_H_INCLUDED__ #define __INSTANT_H_INCLUDED__ #include "ConceptInstantHandler.h" class NDimensionsEnvironment_EXPORTS Instant { public: //====== LIFECYCLE ======== Instant(std::vector* instant); Instant(); Instant(int size); ~Instant(); //====== OPERATIONS ======= /* * Add a new concept to the instant * @param indexConcept: index concept that is going * to be added of the new concept added to the instant * @return -- * */ void addConcept(int value); //======= INQUIRY =========== /* * Returns the value nTuple * @return nTuple */ std::vector* getInstant(); /* * Returns the index of the concept that's * in the instant's concept index * @param indexConcept: index of the concept in the instant * @return indexInConcept */ int getIndexInConcept(int indexConcept); /* * returns the number of concepts that the instant has * @return nTuple.size() */ int getSize(); /* * Compares if the instant given is equals to the nTuple * @param instant: instant for compare * @return true if is equals to the nTuple, false otherwise */ bool isEquals(Instant* instant); //=========== ACCESS ========== /* * Sets the nTuple * @param instant: the vector that's going to be save in * nTuple */ void setInstant(std::vector* instant); /* * Change the concept's index saved in the nTuple index (the index * that's is for that concept * @param indexConcept: Concept that's going to change the value * @return-- * */ void setConcept(int indexConcept, int index); /* * remove a concept from the instant * @param indexConcept: Concept that's going to be removec * @return true if succesful, false otherwise * */ bool removeConcept(int indexConcept); private: //=========== ATTRIBUTES========== /* * The vector that's represent an instant according to the * number of concepts that are already defined * EXAMPLE * concepts: (time,patient), and time's size is 2, patients's size is 2 * then an possible instant is (1,2) * */ std::vector* nTuple; }; #endif