--- /dev/null
+/*****************************************************************************
+ * Copyright Igor Barma, Eric Brun, Alexandre Desoubeaux, Christian Martel,
+ * (2 décembre 2008)
+ *
+ * Ce logiciel est un programme informatique servant à l'évaluation des
+ * compétences.
+ *
+ * Ce logiciel est régi par la licence CeCILL soumise au droit français et
+ * respectant les principes de diffusion des logiciels libres. Vous pouvez
+ * utiliser, modifier et/ou redistribuer ce programme sous les conditions
+ * de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA
+ * sur le site "http://www.cecill.info".
+ *
+ * En contrepartie de l'accessibilité au code source et des droits de copie,
+ * de modification et de redistribution accordés par cette licence, il n'est
+ * offert aux utilisateurs qu'une garantie limitée. Pour les mêmes raisons,
+ * seule une responsabilité restreinte pèse sur l'auteur du programme, le
+ * titulaire des droits patrimoniaux et les concédants successifs.
+ *
+ * A cet égard l'attention de l'utilisateur est attirée sur les risques
+ * associés au chargement, à l'utilisation, à la modification et/ou au
+ * développement et à la reproduction du logiciel par l'utilisateur étant
+ * donné sa spécificité de logiciel libre, qui peut le rendre complexe à
+ * manipuler et qui le réserve donc à des développeurs et des professionnels
+ * avertis possédant des connaissances informatiques approfondies. Les
+ * utilisateurs sont donc invités à charger et tester l'adéquation du
+ * logiciel à leurs besoins dans des conditions permettant d'assurer la
+ * sécurité de leurs systèmes et ou de leurs données et, plus généralement,
+ * à l'utiliser et l'exploiter dans les mêmes conditions de sécurité.
+ *
+ * Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
+ * pris connaissance de la licence CeCILL, et que vous en avez accepté les
+ * termes.
+ *******************************************************************************/
+package com.pentila.evalcomp.domain.transit;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Set;
+
+import com.pentila.evalcomp.domain.definition.Property;
+import com.pentila.evalcomp.domain.service.ExtendActivity;
+
+// TODO: Auto-generated Javadoc
+/**
+ * The Class Activity.
+ */
+public class Activity implements Serializable {
+
+ /** The description. */
+ String description;
+
+ /** The id. */
+ String id;
+
+ /** The name. */
+ String name;
+
+ /** The transitions. */
+ List<Transition> transitions = new ArrayList<Transition>();
+
+ /** The UUID. */
+ String UUID;
+
+ /** The ext activity. */
+ ExtendActivity extActivity;
+
+ /** The task candidates. */
+ Set<String> taskCandidates;
+
+ Date readyDate = null;
+
+ /** The properties. */
+ private Set<Property> properties;
+
+ /** The role name performers. */
+ private Set<String> roleNamePerformers;
+
+ /**
+ * Gets the role name performers.
+ *
+ * @return the role name performers
+ */
+ public Set<String> getRoleNamePerformers() {
+ return roleNamePerformers;
+ }
+
+ /**
+ * Sets the role name performers.
+ *
+ * @param roleNamePerformers the new role name performers
+ */
+ public void setRoleNamePerformers(Set<String> roleNamePerformers) {
+ this.roleNamePerformers = roleNamePerformers;
+ }
+
+ /**
+ * Adds the transition.
+ *
+ * @param t
+ * the t
+ */
+ public void addTransition(Transition t) {
+ this.transitions.add(t);
+ }
+
+ /**
+ * Gets the description.
+ *
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Gets the id.
+ *
+ * @return the id
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Gets the name.
+ *
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Gets the transition.
+ *
+ * @param id
+ * the id
+ *
+ * @return the transition
+ */
+ public Transition getTransition(String id) {
+ for (Transition t : transitions) {
+ if (t.getId().equals(id)) {
+ return t;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Gets the transitions.
+ *
+ * @return the transitions
+ */
+ public List<Transition> getTransitions() {
+ return transitions;
+ }
+
+ /**
+ * Gets the uUID.
+ *
+ * @return the uUID
+ */
+ public String getUUID() {
+ return UUID;
+ }
+
+ /**
+ * Sets the description.
+ *
+ * @param description
+ * the new description
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /**
+ * Sets the id.
+ *
+ * @param id
+ * the new id
+ */
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * Sets the name.
+ *
+ * @param name
+ * the new name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * Sets the transitions.
+ *
+ * @param transitions
+ * the new transitions
+ */
+ public void setTransitions(List<Transition> transitions) {
+ this.transitions = transitions;
+ }
+
+ /**
+ * Sets the uUID.
+ *
+ * @param uuid
+ * the new uUID
+ */
+ public void setUUID(String uuid) {
+ UUID = uuid;
+ }
+
+ /**
+ * Gets the ext activity.
+ *
+ * @return the ext activity
+ */
+ public ExtendActivity getExtActivity() {
+ return extActivity;
+ }
+
+ /**
+ * Sets the ext activity.
+ *
+ * @param extActivity
+ * the new ext activity
+ */
+ public void setExtActivity(ExtendActivity extActivity) {
+ this.extActivity = extActivity;
+ }
+
+ /**
+ * Gets the task candidates.
+ *
+ * @return the task candidates
+ */
+ public Set<String> getTaskCandidates() {
+ return taskCandidates;
+ }
+
+ /**
+ * Sets the task candidates.
+ *
+ * @param taskCandidates the new task candidates
+ */
+ public void setTaskCandidates(Set<String> taskCandidates) {
+ this.taskCandidates = taskCandidates;
+ }
+
+ /**
+ * Gets the properties.
+ *
+ * @return the properties
+ */
+ public Set<Property> getProperties() {
+ return properties;
+ }
+
+ /**
+ * Sets the properties.
+ *
+ * @param sp the new properties
+ */
+ public void setProperties(Set<Property> sp){
+ this.properties = sp;
+ }
+
+ public Date getReadyDate() {
+ return readyDate;
+ }
+
+ public void setReadyDate(Date readyDate) {
+ this.readyDate = readyDate;
+ }
+
+
+
+}