Initial Commit

This commit is contained in:
Matthias
2017-04-11 15:47:10 +02:00
commit 7c274da003
1344 changed files with 345586 additions and 0 deletions
+272
View File
@@ -0,0 +1,272 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Activity</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getActid <em>Actid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getName <em>Name</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getType <em>Type</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getBranchID <em>Branch ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getParentWorkflow <em>Parent Workflow</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getInstances <em>Instances</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getStatusEvents <em>Status Events</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getParent <em>Parent</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Activity#getChildren <em>Children</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity()
* @model
* @generated
*/
public interface Activity extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>Actid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Actid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Actid</em>' attribute.
* @see #setActid(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Actid()
* @model required="true"
* @generated
*/
long getActid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getActid <em>Actid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Actid</em>' attribute.
* @see #getActid()
* @generated
*/
void setActid(long value);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Name()
* @model required="true"
* @generated
*/
String getName();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Type</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Type</em>' attribute.
* @see #setType(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Type()
* @model required="true"
* @generated
*/
String getType();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getType <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Type</em>' attribute.
* @see #getType()
* @generated
*/
void setType(String value);
/**
* Returns the value of the '<em><b>Branch ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Branch ID</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Branch ID</em>' attribute.
* @see #setBranchID(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_BranchID()
* @model required="true"
* @generated
*/
long getBranchID();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getBranchID <em>Branch ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Branch ID</em>' attribute.
* @see #getBranchID()
* @generated
*/
void setBranchID(long value);
/**
* Returns the value of the '<em><b>Parent Workflow</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Workflow</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Workflow</em>' reference.
* @see #setParentWorkflow(Workflow)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_ParentWorkflow()
* @model required="true" ordered="false"
* @generated
*/
Workflow getParentWorkflow();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getParentWorkflow <em>Parent Workflow</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Workflow</em>' reference.
* @see #getParentWorkflow()
* @generated
*/
void setParentWorkflow(Workflow value);
/**
* Returns the value of the '<em><b>Instances</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.ActivityInstance}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getBaseActivity <em>Base Activity</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Instances</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Instances</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Instances()
* @see at.ac.uibk.wfr.perftool.ActivityInstance#getBaseActivity
* @model opposite="baseActivity" containment="true" ordered="false"
* @generated
*/
EList<ActivityInstance> getInstances();
/**
* Returns the value of the '<em><b>Status Events</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.ActivityStatusEvent}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getParentActivity <em>Parent Activity</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Status Events</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Status Events</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_StatusEvents()
* @see at.ac.uibk.wfr.perftool.ActivityStatusEvent#getParentActivity
* @model opposite="parentActivity" containment="true" ordered="false"
* @generated
*/
EList<ActivityStatusEvent> getStatusEvents();
/**
* Returns the value of the '<em><b>Parent</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Activity#getChildren <em>Children</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent</em>' container reference.
* @see #setParent(Activity)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Parent()
* @see at.ac.uibk.wfr.perftool.Activity#getChildren
* @model opposite="children" transient="false"
* @generated
*/
Activity getParent();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Activity#getParent <em>Parent</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent</em>' container reference.
* @see #getParent()
* @generated
*/
void setParent(Activity value);
/**
* Returns the value of the '<em><b>Children</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.Activity}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Activity#getParent <em>Parent</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Children</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Children</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivity_Children()
* @see at.ac.uibk.wfr.perftool.Activity#getParent
* @model opposite="parent" containment="true" ordered="false"
* @generated
*/
EList<Activity> getChildren();
} // Activity
@@ -0,0 +1,207 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Activity Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getInstid <em>Instid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getIterationID <em>Iteration ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getBaseActivity <em>Base Activity</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getParentWorkflow <em>Parent Workflow</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getParentInstance <em>Parent Instance</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstance#getStatusEvents <em>Status Events</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance()
* @model
* @generated
*/
public interface ActivityInstance extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>Instid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Instid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Instid</em>' attribute.
* @see #setInstid(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_Instid()
* @model required="true"
* @generated
*/
long getInstid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getInstid <em>Instid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Instid</em>' attribute.
* @see #getInstid()
* @generated
*/
void setInstid(long value);
/**
* Returns the value of the '<em><b>Iteration ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Iteration ID</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Iteration ID</em>' attribute.
* @see #setIterationID(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_IterationID()
* @model required="true"
* @generated
*/
long getIterationID();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getIterationID <em>Iteration ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Iteration ID</em>' attribute.
* @see #getIterationID()
* @generated
*/
void setIterationID(long value);
/**
* Returns the value of the '<em><b>Base Activity</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Activity#getInstances <em>Instances</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Base Activity</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Base Activity</em>' container reference.
* @see #setBaseActivity(Activity)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_BaseActivity()
* @see at.ac.uibk.wfr.perftool.Activity#getInstances
* @model opposite="instances" required="true" transient="false"
* @generated
*/
Activity getBaseActivity();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getBaseActivity <em>Base Activity</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Base Activity</em>' container reference.
* @see #getBaseActivity()
* @generated
*/
void setBaseActivity(Activity value);
/**
* Returns the value of the '<em><b>Parent Workflow</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Workflow</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Workflow</em>' reference.
* @see #setParentWorkflow(Workflow)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_ParentWorkflow()
* @model
* @generated
*/
Workflow getParentWorkflow();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getParentWorkflow <em>Parent Workflow</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Workflow</em>' reference.
* @see #getParentWorkflow()
* @generated
*/
void setParentWorkflow(Workflow value);
/**
* Returns the value of the '<em><b>Parent Instance</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Instance</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Instance</em>' reference.
* @see #setParentInstance(ActivityInstance)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_ParentInstance()
* @model
* @generated
*/
ActivityInstance getParentInstance();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getParentInstance <em>Parent Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Instance</em>' reference.
* @see #getParentInstance()
* @generated
*/
void setParentInstance(ActivityInstance value);
/**
* Returns the value of the '<em><b>Status Events</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getParentInstance <em>Parent Instance</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Status Events</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Status Events</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstance_StatusEvents()
* @see at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getParentInstance
* @model opposite="parentInstance" containment="true" ordered="false"
* @generated
*/
EList<ActivityInstanceStatusEvent> getStatusEvents();
} // ActivityInstance
@@ -0,0 +1,160 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Activity Instance Status Event</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getParentInstance <em>Parent Instance</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstanceStatusEvent()
* @model
* @generated
*/
public interface ActivityInstanceStatusEvent extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstanceStatusEvent_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>New Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>New Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>New Status</em>' attribute.
* @see #setNewStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstanceStatusEvent_NewStatus()
* @model required="true"
* @generated
*/
String getNewStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getNewStatus <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>New Status</em>' attribute.
* @see #getNewStatus()
* @generated
*/
void setNewStatus(String value);
/**
* Returns the value of the '<em><b>Old Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Old Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Old Status</em>' attribute.
* @see #setOldStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstanceStatusEvent_OldStatus()
* @model required="true"
* @generated
*/
String getOldStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getOldStatus <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Old Status</em>' attribute.
* @see #getOldStatus()
* @generated
*/
void setOldStatus(String value);
/**
* Returns the value of the '<em><b>Timestamp</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Timestamp</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Timestamp</em>' attribute.
* @see #setTimestamp(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstanceStatusEvent_Timestamp()
* @model required="true"
* @generated
*/
long getTimestamp();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getTimestamp <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Timestamp</em>' attribute.
* @see #getTimestamp()
* @generated
*/
void setTimestamp(long value);
/**
* Returns the value of the '<em><b>Parent Instance</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.ActivityInstance#getStatusEvents <em>Status Events</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Instance</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Instance</em>' container reference.
* @see #setParentInstance(ActivityInstance)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityInstanceStatusEvent_ParentInstance()
* @see at.ac.uibk.wfr.perftool.ActivityInstance#getStatusEvents
* @model opposite="statusEvents" required="true" transient="false"
* @generated
*/
ActivityInstance getParentInstance();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent#getParentInstance <em>Parent Instance</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Instance</em>' container reference.
* @see #getParentInstance()
* @generated
*/
void setParentInstance(ActivityInstance value);
} // ActivityInstanceStatusEvent
@@ -0,0 +1,160 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Activity Status Event</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getParentActivity <em>Parent Activity</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityStatusEvent()
* @model
* @generated
*/
public interface ActivityStatusEvent extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityStatusEvent_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>New Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>New Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>New Status</em>' attribute.
* @see #setNewStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityStatusEvent_NewStatus()
* @model required="true"
* @generated
*/
String getNewStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getNewStatus <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>New Status</em>' attribute.
* @see #getNewStatus()
* @generated
*/
void setNewStatus(String value);
/**
* Returns the value of the '<em><b>Old Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Old Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Old Status</em>' attribute.
* @see #setOldStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityStatusEvent_OldStatus()
* @model required="true"
* @generated
*/
String getOldStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getOldStatus <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Old Status</em>' attribute.
* @see #getOldStatus()
* @generated
*/
void setOldStatus(String value);
/**
* Returns the value of the '<em><b>Timestamp</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Timestamp</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Timestamp</em>' attribute.
* @see #setTimestamp(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityStatusEvent_Timestamp()
* @model required="true"
* @generated
*/
long getTimestamp();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getTimestamp <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Timestamp</em>' attribute.
* @see #getTimestamp()
* @generated
*/
void setTimestamp(long value);
/**
* Returns the value of the '<em><b>Parent Activity</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Activity#getStatusEvents <em>Status Events</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Activity</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Activity</em>' container reference.
* @see #setParentActivity(Activity)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getActivityStatusEvent_ParentActivity()
* @see at.ac.uibk.wfr.perftool.Activity#getStatusEvents
* @model opposite="statusEvents" required="true" transient="false"
* @generated
*/
Activity getParentActivity();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent#getParentActivity <em>Parent Activity</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Activity</em>' container reference.
* @see #getParentActivity()
* @generated
*/
void setParentActivity(Activity value);
} // ActivityStatusEvent
@@ -0,0 +1,187 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Component Status Event</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getComponentType <em>Component Type</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getWorkflow <em>Workflow</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent()
* @model
* @generated
*/
public interface ComponentStatusEvent extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>Component Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Component Type</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Component Type</em>' attribute.
* @see #setComponentType(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent_ComponentType()
* @model required="true"
* @generated
*/
String getComponentType();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getComponentType <em>Component Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Component Type</em>' attribute.
* @see #getComponentType()
* @generated
*/
void setComponentType(String value);
/**
* Returns the value of the '<em><b>New Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>New Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>New Status</em>' attribute.
* @see #setNewStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent_NewStatus()
* @model required="true"
* @generated
*/
String getNewStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getNewStatus <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>New Status</em>' attribute.
* @see #getNewStatus()
* @generated
*/
void setNewStatus(String value);
/**
* Returns the value of the '<em><b>Old Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Old Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Old Status</em>' attribute.
* @see #setOldStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent_OldStatus()
* @model required="true"
* @generated
*/
String getOldStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getOldStatus <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Old Status</em>' attribute.
* @see #getOldStatus()
* @generated
*/
void setOldStatus(String value);
/**
* Returns the value of the '<em><b>Timestamp</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Timestamp</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Timestamp</em>' attribute.
* @see #setTimestamp(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent_Timestamp()
* @model required="true"
* @generated
*/
long getTimestamp();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getTimestamp <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Timestamp</em>' attribute.
* @see #getTimestamp()
* @generated
*/
void setTimestamp(long value);
/**
* Returns the value of the '<em><b>Workflow</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Workflow#getComponentEvents <em>Component Events</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Workflow</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Workflow</em>' container reference.
* @see #setWorkflow(Workflow)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getComponentStatusEvent_Workflow()
* @see at.ac.uibk.wfr.perftool.Workflow#getComponentEvents
* @model opposite="componentEvents" transient="false"
* @generated
*/
Workflow getWorkflow();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getWorkflow <em>Workflow</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Workflow</em>' container reference.
* @see #getWorkflow()
* @generated
*/
void setWorkflow(Workflow value);
} // ComponentStatusEvent
@@ -0,0 +1,295 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Device Instance Status Event</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getDeviceType <em>Device Type</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getDeviceID <em>Device ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getExecutedImplID <em>Executed Impl ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getDeviceSlotCount <em>Device Slot Count</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getParentWorkflow <em>Parent Workflow</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getExecutedInstance <em>Executed Instance</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent()
* @model
* @generated
*/
public interface DeviceInstanceStatusEvent extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>Device Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Device Type</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Device Type</em>' attribute.
* @see #setDeviceType(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_DeviceType()
* @model required="true"
* @generated
*/
String getDeviceType();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getDeviceType <em>Device Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Device Type</em>' attribute.
* @see #getDeviceType()
* @generated
*/
void setDeviceType(String value);
/**
* Returns the value of the '<em><b>Device ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Device ID</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Device ID</em>' attribute.
* @see #setDeviceID(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_DeviceID()
* @model required="true"
* @generated
*/
long getDeviceID();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getDeviceID <em>Device ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Device ID</em>' attribute.
* @see #getDeviceID()
* @generated
*/
void setDeviceID(long value);
/**
* Returns the value of the '<em><b>New Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>New Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>New Status</em>' attribute.
* @see #setNewStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_NewStatus()
* @model required="true"
* @generated
*/
String getNewStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getNewStatus <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>New Status</em>' attribute.
* @see #getNewStatus()
* @generated
*/
void setNewStatus(String value);
/**
* Returns the value of the '<em><b>Old Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Old Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Old Status</em>' attribute.
* @see #setOldStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_OldStatus()
* @model required="true"
* @generated
*/
String getOldStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getOldStatus <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Old Status</em>' attribute.
* @see #getOldStatus()
* @generated
*/
void setOldStatus(String value);
/**
* Returns the value of the '<em><b>Timestamp</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Timestamp</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Timestamp</em>' attribute.
* @see #setTimestamp(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_Timestamp()
* @model required="true"
* @generated
*/
long getTimestamp();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getTimestamp <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Timestamp</em>' attribute.
* @see #getTimestamp()
* @generated
*/
void setTimestamp(long value);
/**
* Returns the value of the '<em><b>Executed Impl ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Executed Impl ID</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Executed Impl ID</em>' attribute.
* @see #setExecutedImplID(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_ExecutedImplID()
* @model required="true"
* @generated
*/
long getExecutedImplID();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getExecutedImplID <em>Executed Impl ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Executed Impl ID</em>' attribute.
* @see #getExecutedImplID()
* @generated
*/
void setExecutedImplID(long value);
/**
* Returns the value of the '<em><b>Device Slot Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Device Slot Count</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Device Slot Count</em>' attribute.
* @see #setDeviceSlotCount(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_DeviceSlotCount()
* @model required="true"
* @generated
*/
long getDeviceSlotCount();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getDeviceSlotCount <em>Device Slot Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Device Slot Count</em>' attribute.
* @see #getDeviceSlotCount()
* @generated
*/
void setDeviceSlotCount(long value);
/**
* Returns the value of the '<em><b>Parent Workflow</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Workflow#getDeviceEvents <em>Device Events</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Workflow</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Workflow</em>' container reference.
* @see #setParentWorkflow(Workflow)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_ParentWorkflow()
* @see at.ac.uibk.wfr.perftool.Workflow#getDeviceEvents
* @model opposite="deviceEvents" transient="false"
* @generated
*/
Workflow getParentWorkflow();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getParentWorkflow <em>Parent Workflow</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Workflow</em>' container reference.
* @see #getParentWorkflow()
* @generated
*/
void setParentWorkflow(Workflow value);
/**
* Returns the value of the '<em><b>Executed Instance</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Executed Instance</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Executed Instance</em>' reference.
* @see #setExecutedInstance(ActivityInstance)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getDeviceInstanceStatusEvent_ExecutedInstance()
* @model
* @generated
*/
ActivityInstance getExecutedInstance();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getExecutedInstance <em>Executed Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Executed Instance</em>' reference.
* @see #getExecutedInstance()
* @generated
*/
void setExecutedInstance(ActivityInstance value);
} // DeviceInstanceStatusEvent
@@ -0,0 +1,105 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see at.ac.uibk.wfr.perftool.PerftoolPackage
* @generated
*/
public interface PerftoolFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
PerftoolFactory eINSTANCE = at.ac.uibk.wfr.perftool.impl.PerftoolFactoryImpl.init();
/**
* Returns a new object of class '<em>Workflow</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Workflow</em>'.
* @generated
*/
Workflow createWorkflow();
/**
* Returns a new object of class '<em>Activity</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Activity</em>'.
* @generated
*/
Activity createActivity();
/**
* Returns a new object of class '<em>Activity Instance</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Activity Instance</em>'.
* @generated
*/
ActivityInstance createActivityInstance();
/**
* Returns a new object of class '<em>Workflow Status Event</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Workflow Status Event</em>'.
* @generated
*/
WorkflowStatusEvent createWorkflowStatusEvent();
/**
* Returns a new object of class '<em>Activity Status Event</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Activity Status Event</em>'.
* @generated
*/
ActivityStatusEvent createActivityStatusEvent();
/**
* Returns a new object of class '<em>Activity Instance Status Event</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Activity Instance Status Event</em>'.
* @generated
*/
ActivityInstanceStatusEvent createActivityInstanceStatusEvent();
/**
* Returns a new object of class '<em>Device Instance Status Event</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Device Instance Status Event</em>'.
* @generated
*/
DeviceInstanceStatusEvent createDeviceInstanceStatusEvent();
/**
* Returns a new object of class '<em>Component Status Event</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Component Status Event</em>'.
* @generated
*/
ComponentStatusEvent createComponentStatusEvent();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
PerftoolPackage getPerftoolPackage();
} //PerftoolFactory
File diff suppressed because it is too large Load Diff
+217
View File
@@ -0,0 +1,217 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Workflow</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getWfid <em>Wfid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getUuid <em>Uuid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getName <em>Name</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getToplevelActivity <em>Toplevel Activity</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getStatusEvents <em>Status Events</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getDeviceEvents <em>Device Events</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.Workflow#getComponentEvents <em>Component Events</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow()
* @model
* @generated
*/
public interface Workflow extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Workflow#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>Wfid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Wfid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Wfid</em>' attribute.
* @see #setWfid(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_Wfid()
* @model required="true"
* @generated
*/
long getWfid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Workflow#getWfid <em>Wfid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Wfid</em>' attribute.
* @see #getWfid()
* @generated
*/
void setWfid(long value);
/**
* Returns the value of the '<em><b>Uuid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Uuid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Uuid</em>' attribute.
* @see #setUuid(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_Uuid()
* @model required="true"
* @generated
*/
String getUuid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Workflow#getUuid <em>Uuid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Uuid</em>' attribute.
* @see #getUuid()
* @generated
*/
void setUuid(String value);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_Name()
* @model required="true"
* @generated
*/
String getName();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Workflow#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Toplevel Activity</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Toplevel Activity</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Toplevel Activity</em>' containment reference.
* @see #setToplevelActivity(Activity)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_ToplevelActivity()
* @model containment="true"
* @generated
*/
Activity getToplevelActivity();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.Workflow#getToplevelActivity <em>Toplevel Activity</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Toplevel Activity</em>' containment reference.
* @see #getToplevelActivity()
* @generated
*/
void setToplevelActivity(Activity value);
/**
* Returns the value of the '<em><b>Status Events</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getParentWorkflow <em>Parent Workflow</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Status Events</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Status Events</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_StatusEvents()
* @see at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getParentWorkflow
* @model opposite="parentWorkflow" containment="true" ordered="false"
* @generated
*/
EList<WorkflowStatusEvent> getStatusEvents();
/**
* Returns the value of the '<em><b>Device Events</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getParentWorkflow <em>Parent Workflow</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Device Events</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Device Events</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_DeviceEvents()
* @see at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent#getParentWorkflow
* @model opposite="parentWorkflow" containment="true" ordered="false"
* @generated
*/
EList<DeviceInstanceStatusEvent> getDeviceEvents();
/**
* Returns the value of the '<em><b>Component Events</b></em>' containment reference list.
* The list contents are of type {@link at.ac.uibk.wfr.perftool.ComponentStatusEvent}.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent#getWorkflow <em>Workflow</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Component Events</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Component Events</em>' containment reference list.
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflow_ComponentEvents()
* @see at.ac.uibk.wfr.perftool.ComponentStatusEvent#getWorkflow
* @model opposite="workflow" containment="true" ordered="false"
* @generated
*/
EList<ComponentStatusEvent> getComponentEvents();
} // Workflow
@@ -0,0 +1,160 @@
/**
*/
package at.ac.uibk.wfr.perftool;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Workflow Status Event</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getParentWorkflow <em>Parent Workflow</em>}</li>
* </ul>
* </p>
*
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflowStatusEvent()
* @model
* @generated
*/
public interface WorkflowStatusEvent extends EObject {
/**
* Returns the value of the '<em><b>Oid</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Oid</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Oid</em>' attribute.
* @see #setOid(int)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflowStatusEvent_Oid()
* @model id="true" required="true"
* @generated
*/
int getOid();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getOid <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Oid</em>' attribute.
* @see #getOid()
* @generated
*/
void setOid(int value);
/**
* Returns the value of the '<em><b>New Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>New Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>New Status</em>' attribute.
* @see #setNewStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflowStatusEvent_NewStatus()
* @model required="true"
* @generated
*/
String getNewStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getNewStatus <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>New Status</em>' attribute.
* @see #getNewStatus()
* @generated
*/
void setNewStatus(String value);
/**
* Returns the value of the '<em><b>Old Status</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Old Status</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Old Status</em>' attribute.
* @see #setOldStatus(String)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflowStatusEvent_OldStatus()
* @model required="true"
* @generated
*/
String getOldStatus();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getOldStatus <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Old Status</em>' attribute.
* @see #getOldStatus()
* @generated
*/
void setOldStatus(String value);
/**
* Returns the value of the '<em><b>Timestamp</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Timestamp</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Timestamp</em>' attribute.
* @see #setTimestamp(long)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflowStatusEvent_Timestamp()
* @model required="true"
* @generated
*/
long getTimestamp();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getTimestamp <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Timestamp</em>' attribute.
* @see #getTimestamp()
* @generated
*/
void setTimestamp(long value);
/**
* Returns the value of the '<em><b>Parent Workflow</b></em>' container reference.
* It is bidirectional and its opposite is '{@link at.ac.uibk.wfr.perftool.Workflow#getStatusEvents <em>Status Events</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent Workflow</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent Workflow</em>' container reference.
* @see #setParentWorkflow(Workflow)
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#getWorkflowStatusEvent_ParentWorkflow()
* @see at.ac.uibk.wfr.perftool.Workflow#getStatusEvents
* @model opposite="statusEvents" required="true" transient="false"
* @generated
*/
Workflow getParentWorkflow();
/**
* Sets the value of the '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent#getParentWorkflow <em>Parent Workflow</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent Workflow</em>' container reference.
* @see #getParentWorkflow()
* @generated
*/
void setParentWorkflow(Workflow value);
} // WorkflowStatusEvent
@@ -0,0 +1,662 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.ActivityStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Activity</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getActid <em>Actid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getName <em>Name</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getType <em>Type</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getBranchID <em>Branch ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getParentWorkflow <em>Parent Workflow</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getInstances <em>Instances</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getStatusEvents <em>Status Events</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getParent <em>Parent</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityImpl#getChildren <em>Children</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivityImpl extends MinimalEObjectImpl.Container implements Activity {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getActid() <em>Actid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getActid()
* @generated
* @ordered
*/
protected static final long ACTID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getActid() <em>Actid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getActid()
* @generated
* @ordered
*/
protected long actid = ACTID_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getType() <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getType()
* @generated
* @ordered
*/
protected static final String TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getType() <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getType()
* @generated
* @ordered
*/
protected String type = TYPE_EDEFAULT;
/**
* The default value of the '{@link #getBranchID() <em>Branch ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBranchID()
* @generated
* @ordered
*/
protected static final long BRANCH_ID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getBranchID() <em>Branch ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBranchID()
* @generated
* @ordered
*/
protected long branchID = BRANCH_ID_EDEFAULT;
/**
* The cached value of the '{@link #getParentWorkflow() <em>Parent Workflow</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParentWorkflow()
* @generated
* @ordered
*/
protected Workflow parentWorkflow;
/**
* The cached value of the '{@link #getInstances() <em>Instances</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstances()
* @generated
* @ordered
*/
protected EList<ActivityInstance> instances;
/**
* The cached value of the '{@link #getStatusEvents() <em>Status Events</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatusEvents()
* @generated
* @ordered
*/
protected EList<ActivityStatusEvent> statusEvents;
/**
* The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getChildren()
* @generated
* @ordered
*/
protected EList<Activity> children;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ActivityImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.ACTIVITY;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getActid() {
return actid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setActid(long newActid) {
long oldActid = actid;
actid = newActid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__ACTID, oldActid, actid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getType() {
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setType(String newType) {
String oldType = type;
type = newType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__TYPE, oldType, type));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getBranchID() {
return branchID;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBranchID(long newBranchID) {
long oldBranchID = branchID;
branchID = newBranchID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__BRANCH_ID, oldBranchID, branchID));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow getParentWorkflow() {
if (parentWorkflow != null && parentWorkflow.eIsProxy()) {
InternalEObject oldParentWorkflow = (InternalEObject)parentWorkflow;
parentWorkflow = (Workflow)eResolveProxy(oldParentWorkflow);
if (parentWorkflow != oldParentWorkflow) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, PerftoolPackage.ACTIVITY__PARENT_WORKFLOW, oldParentWorkflow, parentWorkflow));
}
}
return parentWorkflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow basicGetParentWorkflow() {
return parentWorkflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentWorkflow(Workflow newParentWorkflow) {
Workflow oldParentWorkflow = parentWorkflow;
parentWorkflow = newParentWorkflow;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__PARENT_WORKFLOW, oldParentWorkflow, parentWorkflow));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ActivityInstance> getInstances() {
if (instances == null) {
instances = new EObjectContainmentWithInverseEList<ActivityInstance>(ActivityInstance.class, this, PerftoolPackage.ACTIVITY__INSTANCES, PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY);
}
return instances;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ActivityStatusEvent> getStatusEvents() {
if (statusEvents == null) {
statusEvents = new EObjectContainmentWithInverseEList<ActivityStatusEvent>(ActivityStatusEvent.class, this, PerftoolPackage.ACTIVITY__STATUS_EVENTS, PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY);
}
return statusEvents;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Activity getParent() {
if (eContainerFeatureID() != PerftoolPackage.ACTIVITY__PARENT) return null;
return (Activity)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetParent(Activity newParent, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newParent, PerftoolPackage.ACTIVITY__PARENT, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParent(Activity newParent) {
if (newParent != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.ACTIVITY__PARENT && newParent != null)) {
if (EcoreUtil.isAncestor(this, newParent))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newParent != null)
msgs = ((InternalEObject)newParent).eInverseAdd(this, PerftoolPackage.ACTIVITY__CHILDREN, Activity.class, msgs);
msgs = basicSetParent(newParent, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY__PARENT, newParent, newParent));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Activity> getChildren() {
if (children == null) {
children = new EObjectContainmentWithInverseEList<Activity>(Activity.class, this, PerftoolPackage.ACTIVITY__CHILDREN, PerftoolPackage.ACTIVITY__PARENT);
}
return children;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY__INSTANCES:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getInstances()).basicAdd(otherEnd, msgs);
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getStatusEvents()).basicAdd(otherEnd, msgs);
case PerftoolPackage.ACTIVITY__PARENT:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetParent((Activity)otherEnd, msgs);
case PerftoolPackage.ACTIVITY__CHILDREN:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getChildren()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY__INSTANCES:
return ((InternalEList<?>)getInstances()).basicRemove(otherEnd, msgs);
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
return ((InternalEList<?>)getStatusEvents()).basicRemove(otherEnd, msgs);
case PerftoolPackage.ACTIVITY__PARENT:
return basicSetParent(null, msgs);
case PerftoolPackage.ACTIVITY__CHILDREN:
return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.ACTIVITY__PARENT:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.ACTIVITY__CHILDREN, Activity.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.ACTIVITY__OID:
return getOid();
case PerftoolPackage.ACTIVITY__ACTID:
return getActid();
case PerftoolPackage.ACTIVITY__NAME:
return getName();
case PerftoolPackage.ACTIVITY__TYPE:
return getType();
case PerftoolPackage.ACTIVITY__BRANCH_ID:
return getBranchID();
case PerftoolPackage.ACTIVITY__PARENT_WORKFLOW:
if (resolve) return getParentWorkflow();
return basicGetParentWorkflow();
case PerftoolPackage.ACTIVITY__INSTANCES:
return getInstances();
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
return getStatusEvents();
case PerftoolPackage.ACTIVITY__PARENT:
return getParent();
case PerftoolPackage.ACTIVITY__CHILDREN:
return getChildren();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.ACTIVITY__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.ACTIVITY__ACTID:
setActid((Long)newValue);
return;
case PerftoolPackage.ACTIVITY__NAME:
setName((String)newValue);
return;
case PerftoolPackage.ACTIVITY__TYPE:
setType((String)newValue);
return;
case PerftoolPackage.ACTIVITY__BRANCH_ID:
setBranchID((Long)newValue);
return;
case PerftoolPackage.ACTIVITY__PARENT_WORKFLOW:
setParentWorkflow((Workflow)newValue);
return;
case PerftoolPackage.ACTIVITY__INSTANCES:
getInstances().clear();
getInstances().addAll((Collection<? extends ActivityInstance>)newValue);
return;
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
getStatusEvents().clear();
getStatusEvents().addAll((Collection<? extends ActivityStatusEvent>)newValue);
return;
case PerftoolPackage.ACTIVITY__PARENT:
setParent((Activity)newValue);
return;
case PerftoolPackage.ACTIVITY__CHILDREN:
getChildren().clear();
getChildren().addAll((Collection<? extends Activity>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY__ACTID:
setActid(ACTID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY__NAME:
setName(NAME_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY__TYPE:
setType(TYPE_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY__BRANCH_ID:
setBranchID(BRANCH_ID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY__PARENT_WORKFLOW:
setParentWorkflow((Workflow)null);
return;
case PerftoolPackage.ACTIVITY__INSTANCES:
getInstances().clear();
return;
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
getStatusEvents().clear();
return;
case PerftoolPackage.ACTIVITY__PARENT:
setParent((Activity)null);
return;
case PerftoolPackage.ACTIVITY__CHILDREN:
getChildren().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.ACTIVITY__ACTID:
return actid != ACTID_EDEFAULT;
case PerftoolPackage.ACTIVITY__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case PerftoolPackage.ACTIVITY__TYPE:
return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
case PerftoolPackage.ACTIVITY__BRANCH_ID:
return branchID != BRANCH_ID_EDEFAULT;
case PerftoolPackage.ACTIVITY__PARENT_WORKFLOW:
return parentWorkflow != null;
case PerftoolPackage.ACTIVITY__INSTANCES:
return instances != null && !instances.isEmpty();
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
return statusEvents != null && !statusEvents.isEmpty();
case PerftoolPackage.ACTIVITY__PARENT:
return getParent() != null;
case PerftoolPackage.ACTIVITY__CHILDREN:
return children != null && !children.isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", actid: ");
result.append(actid);
result.append(", name: ");
result.append(name);
result.append(", type: ");
result.append(type);
result.append(", branchID: ");
result.append(branchID);
result.append(')');
return result.toString();
}
} //ActivityImpl
@@ -0,0 +1,538 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Activity Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getInstid <em>Instid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getIterationID <em>Iteration ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getBaseActivity <em>Base Activity</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getParentWorkflow <em>Parent Workflow</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getParentInstance <em>Parent Instance</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceImpl#getStatusEvents <em>Status Events</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivityInstanceImpl extends MinimalEObjectImpl.Container implements ActivityInstance {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getInstid() <em>Instid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstid()
* @generated
* @ordered
*/
protected static final long INSTID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getInstid() <em>Instid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstid()
* @generated
* @ordered
*/
protected long instid = INSTID_EDEFAULT;
/**
* The default value of the '{@link #getIterationID() <em>Iteration ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIterationID()
* @generated
* @ordered
*/
protected static final long ITERATION_ID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getIterationID() <em>Iteration ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIterationID()
* @generated
* @ordered
*/
protected long iterationID = ITERATION_ID_EDEFAULT;
/**
* The cached value of the '{@link #getParentWorkflow() <em>Parent Workflow</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParentWorkflow()
* @generated
* @ordered
*/
protected Workflow parentWorkflow;
/**
* The cached value of the '{@link #getParentInstance() <em>Parent Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParentInstance()
* @generated
* @ordered
*/
protected ActivityInstance parentInstance;
/**
* The cached value of the '{@link #getStatusEvents() <em>Status Events</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatusEvents()
* @generated
* @ordered
*/
protected EList<ActivityInstanceStatusEvent> statusEvents;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ActivityInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.ACTIVITY_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getInstid() {
return instid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setInstid(long newInstid) {
long oldInstid = instid;
instid = newInstid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE__INSTID, oldInstid, instid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getIterationID() {
return iterationID;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setIterationID(long newIterationID) {
long oldIterationID = iterationID;
iterationID = newIterationID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE__ITERATION_ID, oldIterationID, iterationID));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Activity getBaseActivity() {
if (eContainerFeatureID() != PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY) return null;
return (Activity)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetBaseActivity(Activity newBaseActivity, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newBaseActivity, PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBaseActivity(Activity newBaseActivity) {
if (newBaseActivity != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY && newBaseActivity != null)) {
if (EcoreUtil.isAncestor(this, newBaseActivity))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newBaseActivity != null)
msgs = ((InternalEObject)newBaseActivity).eInverseAdd(this, PerftoolPackage.ACTIVITY__INSTANCES, Activity.class, msgs);
msgs = basicSetBaseActivity(newBaseActivity, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY, newBaseActivity, newBaseActivity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow getParentWorkflow() {
if (parentWorkflow != null && parentWorkflow.eIsProxy()) {
InternalEObject oldParentWorkflow = (InternalEObject)parentWorkflow;
parentWorkflow = (Workflow)eResolveProxy(oldParentWorkflow);
if (parentWorkflow != oldParentWorkflow) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, PerftoolPackage.ACTIVITY_INSTANCE__PARENT_WORKFLOW, oldParentWorkflow, parentWorkflow));
}
}
return parentWorkflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow basicGetParentWorkflow() {
return parentWorkflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentWorkflow(Workflow newParentWorkflow) {
Workflow oldParentWorkflow = parentWorkflow;
parentWorkflow = newParentWorkflow;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE__PARENT_WORKFLOW, oldParentWorkflow, parentWorkflow));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstance getParentInstance() {
if (parentInstance != null && parentInstance.eIsProxy()) {
InternalEObject oldParentInstance = (InternalEObject)parentInstance;
parentInstance = (ActivityInstance)eResolveProxy(oldParentInstance);
if (parentInstance != oldParentInstance) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, PerftoolPackage.ACTIVITY_INSTANCE__PARENT_INSTANCE, oldParentInstance, parentInstance));
}
}
return parentInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstance basicGetParentInstance() {
return parentInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentInstance(ActivityInstance newParentInstance) {
ActivityInstance oldParentInstance = parentInstance;
parentInstance = newParentInstance;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE__PARENT_INSTANCE, oldParentInstance, parentInstance));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ActivityInstanceStatusEvent> getStatusEvents() {
if (statusEvents == null) {
statusEvents = new EObjectContainmentWithInverseEList<ActivityInstanceStatusEvent>(ActivityInstanceStatusEvent.class, this, PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE);
}
return statusEvents;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetBaseActivity((Activity)otherEnd, msgs);
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getStatusEvents()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
return basicSetBaseActivity(null, msgs);
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
return ((InternalEList<?>)getStatusEvents()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.ACTIVITY__INSTANCES, Activity.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE__OID:
return getOid();
case PerftoolPackage.ACTIVITY_INSTANCE__INSTID:
return getInstid();
case PerftoolPackage.ACTIVITY_INSTANCE__ITERATION_ID:
return getIterationID();
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
return getBaseActivity();
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_WORKFLOW:
if (resolve) return getParentWorkflow();
return basicGetParentWorkflow();
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_INSTANCE:
if (resolve) return getParentInstance();
return basicGetParentInstance();
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
return getStatusEvents();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__INSTID:
setInstid((Long)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__ITERATION_ID:
setIterationID((Long)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
setBaseActivity((Activity)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_WORKFLOW:
setParentWorkflow((Workflow)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_INSTANCE:
setParentInstance((ActivityInstance)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
getStatusEvents().clear();
getStatusEvents().addAll((Collection<? extends ActivityInstanceStatusEvent>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__INSTID:
setInstid(INSTID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__ITERATION_ID:
setIterationID(ITERATION_ID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
setBaseActivity((Activity)null);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_WORKFLOW:
setParentWorkflow((Workflow)null);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_INSTANCE:
setParentInstance((ActivityInstance)null);
return;
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
getStatusEvents().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.ACTIVITY_INSTANCE__INSTID:
return instid != INSTID_EDEFAULT;
case PerftoolPackage.ACTIVITY_INSTANCE__ITERATION_ID:
return iterationID != ITERATION_ID_EDEFAULT;
case PerftoolPackage.ACTIVITY_INSTANCE__BASE_ACTIVITY:
return getBaseActivity() != null;
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_WORKFLOW:
return parentWorkflow != null;
case PerftoolPackage.ACTIVITY_INSTANCE__PARENT_INSTANCE:
return parentInstance != null;
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
return statusEvents != null && !statusEvents.isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", instid: ");
result.append(instid);
result.append(", iterationID: ");
result.append(iterationID);
result.append(')');
return result.toString();
}
} //ActivityInstanceImpl
@@ -0,0 +1,426 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Activity Instance Status Event</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceStatusEventImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceStatusEventImpl#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceStatusEventImpl#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceStatusEventImpl#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityInstanceStatusEventImpl#getParentInstance <em>Parent Instance</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivityInstanceStatusEventImpl extends MinimalEObjectImpl.Container implements ActivityInstanceStatusEvent {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected static final String NEW_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected String newStatus = NEW_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected static final String OLD_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected String oldStatus = OLD_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected static final long TIMESTAMP_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected long timestamp = TIMESTAMP_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ActivityInstanceStatusEventImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.ACTIVITY_INSTANCE_STATUS_EVENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNewStatus() {
return newStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNewStatus(String newNewStatus) {
String oldNewStatus = newStatus;
newStatus = newNewStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS, oldNewStatus, newStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOldStatus() {
return oldStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOldStatus(String newOldStatus) {
String oldOldStatus = oldStatus;
oldStatus = newOldStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS, oldOldStatus, oldStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getTimestamp() {
return timestamp;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimestamp(long newTimestamp) {
long oldTimestamp = timestamp;
timestamp = newTimestamp;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP, oldTimestamp, timestamp));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstance getParentInstance() {
if (eContainerFeatureID() != PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE) return null;
return (ActivityInstance)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetParentInstance(ActivityInstance newParentInstance, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newParentInstance, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentInstance(ActivityInstance newParentInstance) {
if (newParentInstance != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE && newParentInstance != null)) {
if (EcoreUtil.isAncestor(this, newParentInstance))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newParentInstance != null)
msgs = ((InternalEObject)newParentInstance).eInverseAdd(this, PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS, ActivityInstance.class, msgs);
msgs = basicSetParentInstance(newParentInstance, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE, newParentInstance, newParentInstance));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetParentInstance((ActivityInstance)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
return basicSetParentInstance(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS, ActivityInstance.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OID:
return getOid();
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS:
return getNewStatus();
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS:
return getOldStatus();
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP:
return getTimestamp();
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
return getParentInstance();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS:
setNewStatus((String)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS:
setOldStatus((String)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP:
setTimestamp((Long)newValue);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
setParentInstance((ActivityInstance)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS:
setNewStatus(NEW_STATUS_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS:
setOldStatus(OLD_STATUS_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP:
setTimestamp(TIMESTAMP_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
setParentInstance((ActivityInstance)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS:
return NEW_STATUS_EDEFAULT == null ? newStatus != null : !NEW_STATUS_EDEFAULT.equals(newStatus);
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS:
return OLD_STATUS_EDEFAULT == null ? oldStatus != null : !OLD_STATUS_EDEFAULT.equals(oldStatus);
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP:
return timestamp != TIMESTAMP_EDEFAULT;
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE:
return getParentInstance() != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", newStatus: ");
result.append(newStatus);
result.append(", oldStatus: ");
result.append(oldStatus);
result.append(", timestamp: ");
result.append(timestamp);
result.append(')');
return result.toString();
}
} //ActivityInstanceStatusEventImpl
@@ -0,0 +1,426 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ActivityStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Activity Status Event</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityStatusEventImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityStatusEventImpl#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityStatusEventImpl#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityStatusEventImpl#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ActivityStatusEventImpl#getParentActivity <em>Parent Activity</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivityStatusEventImpl extends MinimalEObjectImpl.Container implements ActivityStatusEvent {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected static final String NEW_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected String newStatus = NEW_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected static final String OLD_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected String oldStatus = OLD_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected static final long TIMESTAMP_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected long timestamp = TIMESTAMP_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ActivityStatusEventImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.ACTIVITY_STATUS_EVENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_STATUS_EVENT__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNewStatus() {
return newStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNewStatus(String newNewStatus) {
String oldNewStatus = newStatus;
newStatus = newNewStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_STATUS_EVENT__NEW_STATUS, oldNewStatus, newStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOldStatus() {
return oldStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOldStatus(String newOldStatus) {
String oldOldStatus = oldStatus;
oldStatus = newOldStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_STATUS_EVENT__OLD_STATUS, oldOldStatus, oldStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getTimestamp() {
return timestamp;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimestamp(long newTimestamp) {
long oldTimestamp = timestamp;
timestamp = newTimestamp;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_STATUS_EVENT__TIMESTAMP, oldTimestamp, timestamp));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Activity getParentActivity() {
if (eContainerFeatureID() != PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY) return null;
return (Activity)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetParentActivity(Activity newParentActivity, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newParentActivity, PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentActivity(Activity newParentActivity) {
if (newParentActivity != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY && newParentActivity != null)) {
if (EcoreUtil.isAncestor(this, newParentActivity))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newParentActivity != null)
msgs = ((InternalEObject)newParentActivity).eInverseAdd(this, PerftoolPackage.ACTIVITY__STATUS_EVENTS, Activity.class, msgs);
msgs = basicSetParentActivity(newParentActivity, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY, newParentActivity, newParentActivity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetParentActivity((Activity)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
return basicSetParentActivity(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.ACTIVITY__STATUS_EVENTS, Activity.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OID:
return getOid();
case PerftoolPackage.ACTIVITY_STATUS_EVENT__NEW_STATUS:
return getNewStatus();
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OLD_STATUS:
return getOldStatus();
case PerftoolPackage.ACTIVITY_STATUS_EVENT__TIMESTAMP:
return getTimestamp();
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
return getParentActivity();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__NEW_STATUS:
setNewStatus((String)newValue);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OLD_STATUS:
setOldStatus((String)newValue);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__TIMESTAMP:
setTimestamp((Long)newValue);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
setParentActivity((Activity)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__NEW_STATUS:
setNewStatus(NEW_STATUS_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OLD_STATUS:
setOldStatus(OLD_STATUS_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__TIMESTAMP:
setTimestamp(TIMESTAMP_EDEFAULT);
return;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
setParentActivity((Activity)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__NEW_STATUS:
return NEW_STATUS_EDEFAULT == null ? newStatus != null : !NEW_STATUS_EDEFAULT.equals(newStatus);
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OLD_STATUS:
return OLD_STATUS_EDEFAULT == null ? oldStatus != null : !OLD_STATUS_EDEFAULT.equals(oldStatus);
case PerftoolPackage.ACTIVITY_STATUS_EVENT__TIMESTAMP:
return timestamp != TIMESTAMP_EDEFAULT;
case PerftoolPackage.ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY:
return getParentActivity() != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", newStatus: ");
result.append(newStatus);
result.append(", oldStatus: ");
result.append(oldStatus);
result.append(", timestamp: ");
result.append(timestamp);
result.append(')');
return result.toString();
}
} //ActivityStatusEventImpl
@@ -0,0 +1,480 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.ComponentStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Component Status Event</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ComponentStatusEventImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ComponentStatusEventImpl#getComponentType <em>Component Type</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ComponentStatusEventImpl#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ComponentStatusEventImpl#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ComponentStatusEventImpl#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.ComponentStatusEventImpl#getWorkflow <em>Workflow</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ComponentStatusEventImpl extends MinimalEObjectImpl.Container implements ComponentStatusEvent {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getComponentType() <em>Component Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComponentType()
* @generated
* @ordered
*/
protected static final String COMPONENT_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getComponentType() <em>Component Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComponentType()
* @generated
* @ordered
*/
protected String componentType = COMPONENT_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected static final String NEW_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected String newStatus = NEW_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected static final String OLD_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected String oldStatus = OLD_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected static final long TIMESTAMP_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected long timestamp = TIMESTAMP_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ComponentStatusEventImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.COMPONENT_STATUS_EVENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.COMPONENT_STATUS_EVENT__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getComponentType() {
return componentType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setComponentType(String newComponentType) {
String oldComponentType = componentType;
componentType = newComponentType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.COMPONENT_STATUS_EVENT__COMPONENT_TYPE, oldComponentType, componentType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNewStatus() {
return newStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNewStatus(String newNewStatus) {
String oldNewStatus = newStatus;
newStatus = newNewStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.COMPONENT_STATUS_EVENT__NEW_STATUS, oldNewStatus, newStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOldStatus() {
return oldStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOldStatus(String newOldStatus) {
String oldOldStatus = oldStatus;
oldStatus = newOldStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.COMPONENT_STATUS_EVENT__OLD_STATUS, oldOldStatus, oldStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getTimestamp() {
return timestamp;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimestamp(long newTimestamp) {
long oldTimestamp = timestamp;
timestamp = newTimestamp;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.COMPONENT_STATUS_EVENT__TIMESTAMP, oldTimestamp, timestamp));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow getWorkflow() {
if (eContainerFeatureID() != PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW) return null;
return (Workflow)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetWorkflow(Workflow newWorkflow, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newWorkflow, PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWorkflow(Workflow newWorkflow) {
if (newWorkflow != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW && newWorkflow != null)) {
if (EcoreUtil.isAncestor(this, newWorkflow))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newWorkflow != null)
msgs = ((InternalEObject)newWorkflow).eInverseAdd(this, PerftoolPackage.WORKFLOW__COMPONENT_EVENTS, Workflow.class, msgs);
msgs = basicSetWorkflow(newWorkflow, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW, newWorkflow, newWorkflow));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetWorkflow((Workflow)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
return basicSetWorkflow(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.WORKFLOW__COMPONENT_EVENTS, Workflow.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__OID:
return getOid();
case PerftoolPackage.COMPONENT_STATUS_EVENT__COMPONENT_TYPE:
return getComponentType();
case PerftoolPackage.COMPONENT_STATUS_EVENT__NEW_STATUS:
return getNewStatus();
case PerftoolPackage.COMPONENT_STATUS_EVENT__OLD_STATUS:
return getOldStatus();
case PerftoolPackage.COMPONENT_STATUS_EVENT__TIMESTAMP:
return getTimestamp();
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
return getWorkflow();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__COMPONENT_TYPE:
setComponentType((String)newValue);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__NEW_STATUS:
setNewStatus((String)newValue);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__OLD_STATUS:
setOldStatus((String)newValue);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__TIMESTAMP:
setTimestamp((Long)newValue);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
setWorkflow((Workflow)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__COMPONENT_TYPE:
setComponentType(COMPONENT_TYPE_EDEFAULT);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__NEW_STATUS:
setNewStatus(NEW_STATUS_EDEFAULT);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__OLD_STATUS:
setOldStatus(OLD_STATUS_EDEFAULT);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__TIMESTAMP:
setTimestamp(TIMESTAMP_EDEFAULT);
return;
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
setWorkflow((Workflow)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.COMPONENT_STATUS_EVENT__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.COMPONENT_STATUS_EVENT__COMPONENT_TYPE:
return COMPONENT_TYPE_EDEFAULT == null ? componentType != null : !COMPONENT_TYPE_EDEFAULT.equals(componentType);
case PerftoolPackage.COMPONENT_STATUS_EVENT__NEW_STATUS:
return NEW_STATUS_EDEFAULT == null ? newStatus != null : !NEW_STATUS_EDEFAULT.equals(newStatus);
case PerftoolPackage.COMPONENT_STATUS_EVENT__OLD_STATUS:
return OLD_STATUS_EDEFAULT == null ? oldStatus != null : !OLD_STATUS_EDEFAULT.equals(oldStatus);
case PerftoolPackage.COMPONENT_STATUS_EVENT__TIMESTAMP:
return timestamp != TIMESTAMP_EDEFAULT;
case PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW:
return getWorkflow() != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", componentType: ");
result.append(componentType);
result.append(", newStatus: ");
result.append(newStatus);
result.append(", oldStatus: ");
result.append(oldStatus);
result.append(", timestamp: ");
result.append(timestamp);
result.append(')');
return result.toString();
}
} //ComponentStatusEventImpl
@@ -0,0 +1,703 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Device Instance Status Event</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getDeviceType <em>Device Type</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getDeviceID <em>Device ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getExecutedImplID <em>Executed Impl ID</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getDeviceSlotCount <em>Device Slot Count</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getParentWorkflow <em>Parent Workflow</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.DeviceInstanceStatusEventImpl#getExecutedInstance <em>Executed Instance</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DeviceInstanceStatusEventImpl extends MinimalEObjectImpl.Container implements DeviceInstanceStatusEvent {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getDeviceType() <em>Device Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceType()
* @generated
* @ordered
*/
protected static final String DEVICE_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getDeviceType() <em>Device Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceType()
* @generated
* @ordered
*/
protected String deviceType = DEVICE_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getDeviceID() <em>Device ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceID()
* @generated
* @ordered
*/
protected static final long DEVICE_ID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getDeviceID() <em>Device ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceID()
* @generated
* @ordered
*/
protected long deviceID = DEVICE_ID_EDEFAULT;
/**
* The default value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected static final String NEW_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected String newStatus = NEW_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected static final String OLD_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected String oldStatus = OLD_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected static final long TIMESTAMP_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected long timestamp = TIMESTAMP_EDEFAULT;
/**
* The default value of the '{@link #getExecutedImplID() <em>Executed Impl ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getExecutedImplID()
* @generated
* @ordered
*/
protected static final long EXECUTED_IMPL_ID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getExecutedImplID() <em>Executed Impl ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getExecutedImplID()
* @generated
* @ordered
*/
protected long executedImplID = EXECUTED_IMPL_ID_EDEFAULT;
/**
* The default value of the '{@link #getDeviceSlotCount() <em>Device Slot Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceSlotCount()
* @generated
* @ordered
*/
protected static final long DEVICE_SLOT_COUNT_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getDeviceSlotCount() <em>Device Slot Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceSlotCount()
* @generated
* @ordered
*/
protected long deviceSlotCount = DEVICE_SLOT_COUNT_EDEFAULT;
/**
* The cached value of the '{@link #getExecutedInstance() <em>Executed Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getExecutedInstance()
* @generated
* @ordered
*/
protected ActivityInstance executedInstance;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DeviceInstanceStatusEventImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDeviceType() {
return deviceType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDeviceType(String newDeviceType) {
String oldDeviceType = deviceType;
deviceType = newDeviceType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE, oldDeviceType, deviceType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getDeviceID() {
return deviceID;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDeviceID(long newDeviceID) {
long oldDeviceID = deviceID;
deviceID = newDeviceID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID, oldDeviceID, deviceID));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNewStatus() {
return newStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNewStatus(String newNewStatus) {
String oldNewStatus = newStatus;
newStatus = newNewStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS, oldNewStatus, newStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOldStatus() {
return oldStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOldStatus(String newOldStatus) {
String oldOldStatus = oldStatus;
oldStatus = newOldStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS, oldOldStatus, oldStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getTimestamp() {
return timestamp;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimestamp(long newTimestamp) {
long oldTimestamp = timestamp;
timestamp = newTimestamp;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP, oldTimestamp, timestamp));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getExecutedImplID() {
return executedImplID;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExecutedImplID(long newExecutedImplID) {
long oldExecutedImplID = executedImplID;
executedImplID = newExecutedImplID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID, oldExecutedImplID, executedImplID));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getDeviceSlotCount() {
return deviceSlotCount;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDeviceSlotCount(long newDeviceSlotCount) {
long oldDeviceSlotCount = deviceSlotCount;
deviceSlotCount = newDeviceSlotCount;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT, oldDeviceSlotCount, deviceSlotCount));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow getParentWorkflow() {
if (eContainerFeatureID() != PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW) return null;
return (Workflow)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetParentWorkflow(Workflow newParentWorkflow, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newParentWorkflow, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentWorkflow(Workflow newParentWorkflow) {
if (newParentWorkflow != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW && newParentWorkflow != null)) {
if (EcoreUtil.isAncestor(this, newParentWorkflow))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newParentWorkflow != null)
msgs = ((InternalEObject)newParentWorkflow).eInverseAdd(this, PerftoolPackage.WORKFLOW__DEVICE_EVENTS, Workflow.class, msgs);
msgs = basicSetParentWorkflow(newParentWorkflow, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW, newParentWorkflow, newParentWorkflow));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstance getExecutedInstance() {
if (executedInstance != null && executedInstance.eIsProxy()) {
InternalEObject oldExecutedInstance = (InternalEObject)executedInstance;
executedInstance = (ActivityInstance)eResolveProxy(oldExecutedInstance);
if (executedInstance != oldExecutedInstance) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE, oldExecutedInstance, executedInstance));
}
}
return executedInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstance basicGetExecutedInstance() {
return executedInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExecutedInstance(ActivityInstance newExecutedInstance) {
ActivityInstance oldExecutedInstance = executedInstance;
executedInstance = newExecutedInstance;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE, oldExecutedInstance, executedInstance));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetParentWorkflow((Workflow)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
return basicSetParentWorkflow(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.WORKFLOW__DEVICE_EVENTS, Workflow.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID:
return getOid();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE:
return getDeviceType();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID:
return getDeviceID();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS:
return getNewStatus();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS:
return getOldStatus();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP:
return getTimestamp();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID:
return getExecutedImplID();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT:
return getDeviceSlotCount();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
return getParentWorkflow();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE:
if (resolve) return getExecutedInstance();
return basicGetExecutedInstance();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE:
setDeviceType((String)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID:
setDeviceID((Long)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS:
setNewStatus((String)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS:
setOldStatus((String)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP:
setTimestamp((Long)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID:
setExecutedImplID((Long)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT:
setDeviceSlotCount((Long)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
setParentWorkflow((Workflow)newValue);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE:
setExecutedInstance((ActivityInstance)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE:
setDeviceType(DEVICE_TYPE_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID:
setDeviceID(DEVICE_ID_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS:
setNewStatus(NEW_STATUS_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS:
setOldStatus(OLD_STATUS_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP:
setTimestamp(TIMESTAMP_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID:
setExecutedImplID(EXECUTED_IMPL_ID_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT:
setDeviceSlotCount(DEVICE_SLOT_COUNT_EDEFAULT);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
setParentWorkflow((Workflow)null);
return;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE:
setExecutedInstance((ActivityInstance)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE:
return DEVICE_TYPE_EDEFAULT == null ? deviceType != null : !DEVICE_TYPE_EDEFAULT.equals(deviceType);
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID:
return deviceID != DEVICE_ID_EDEFAULT;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS:
return NEW_STATUS_EDEFAULT == null ? newStatus != null : !NEW_STATUS_EDEFAULT.equals(newStatus);
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS:
return OLD_STATUS_EDEFAULT == null ? oldStatus != null : !OLD_STATUS_EDEFAULT.equals(oldStatus);
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP:
return timestamp != TIMESTAMP_EDEFAULT;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID:
return executedImplID != EXECUTED_IMPL_ID_EDEFAULT;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT:
return deviceSlotCount != DEVICE_SLOT_COUNT_EDEFAULT;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW:
return getParentWorkflow() != null;
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE:
return executedInstance != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", deviceType: ");
result.append(deviceType);
result.append(", deviceID: ");
result.append(deviceID);
result.append(", newStatus: ");
result.append(newStatus);
result.append(", oldStatus: ");
result.append(oldStatus);
result.append(", timestamp: ");
result.append(timestamp);
result.append(", executedImplID: ");
result.append(executedImplID);
result.append(", deviceSlotCount: ");
result.append(deviceSlotCount);
result.append(')');
return result.toString();
}
} //DeviceInstanceStatusEventImpl
@@ -0,0 +1,172 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class PerftoolFactoryImpl extends EFactoryImpl implements PerftoolFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static PerftoolFactory init() {
try {
PerftoolFactory thePerftoolFactory = (PerftoolFactory)EPackage.Registry.INSTANCE.getEFactory(PerftoolPackage.eNS_URI);
if (thePerftoolFactory != null) {
return thePerftoolFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new PerftoolFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PerftoolFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case PerftoolPackage.WORKFLOW: return createWorkflow();
case PerftoolPackage.ACTIVITY: return createActivity();
case PerftoolPackage.ACTIVITY_INSTANCE: return createActivityInstance();
case PerftoolPackage.WORKFLOW_STATUS_EVENT: return createWorkflowStatusEvent();
case PerftoolPackage.ACTIVITY_STATUS_EVENT: return createActivityStatusEvent();
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT: return createActivityInstanceStatusEvent();
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT: return createDeviceInstanceStatusEvent();
case PerftoolPackage.COMPONENT_STATUS_EVENT: return createComponentStatusEvent();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow createWorkflow() {
WorkflowImpl workflow = new WorkflowImpl();
return workflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Activity createActivity() {
ActivityImpl activity = new ActivityImpl();
return activity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstance createActivityInstance() {
ActivityInstanceImpl activityInstance = new ActivityInstanceImpl();
return activityInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public WorkflowStatusEvent createWorkflowStatusEvent() {
WorkflowStatusEventImpl workflowStatusEvent = new WorkflowStatusEventImpl();
return workflowStatusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityStatusEvent createActivityStatusEvent() {
ActivityStatusEventImpl activityStatusEvent = new ActivityStatusEventImpl();
return activityStatusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityInstanceStatusEvent createActivityInstanceStatusEvent() {
ActivityInstanceStatusEventImpl activityInstanceStatusEvent = new ActivityInstanceStatusEventImpl();
return activityInstanceStatusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DeviceInstanceStatusEvent createDeviceInstanceStatusEvent() {
DeviceInstanceStatusEventImpl deviceInstanceStatusEvent = new DeviceInstanceStatusEventImpl();
return deviceInstanceStatusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComponentStatusEvent createComponentStatusEvent() {
ComponentStatusEventImpl componentStatusEvent = new ComponentStatusEventImpl();
return componentStatusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PerftoolPackage getPerftoolPackage() {
return (PerftoolPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static PerftoolPackage getPackage() {
return PerftoolPackage.eINSTANCE;
}
} //PerftoolFactoryImpl
@@ -0,0 +1,930 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.ActivityStatusEvent;
import at.ac.uibk.wfr.perftool.ComponentStatusEvent;
import at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolFactory;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import at.ac.uibk.wfr.perftool.WorkflowStatusEvent;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class PerftoolPackageImpl extends EPackageImpl implements PerftoolPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass workflowEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass activityEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass activityInstanceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass workflowStatusEventEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass activityStatusEventEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass activityInstanceStatusEventEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass deviceInstanceStatusEventEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass componentStatusEventEClass = null;
/**
* Creates an instance of the model <b>Package</b>, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
* <p>Note: the correct way to create the package is via the static
* factory method {@link #init init()}, which also performs
* initialization of the package, or returns the registered package,
* if one already exists.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see at.ac.uibk.wfr.perftool.PerftoolPackage#eNS_URI
* @see #init()
* @generated
*/
private PerftoolPackageImpl() {
super(eNS_URI, PerftoolFactory.eINSTANCE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link PerftoolPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static PerftoolPackage init() {
if (isInited) return (PerftoolPackage)EPackage.Registry.INSTANCE.getEPackage(PerftoolPackage.eNS_URI);
// Obtain or create and register package
PerftoolPackageImpl thePerftoolPackage = (PerftoolPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PerftoolPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PerftoolPackageImpl());
isInited = true;
// Create package meta-data objects
thePerftoolPackage.createPackageContents();
// Initialize created meta-data
thePerftoolPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
thePerftoolPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(PerftoolPackage.eNS_URI, thePerftoolPackage);
return thePerftoolPackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getWorkflow() {
return workflowEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflow_Oid() {
return (EAttribute)workflowEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflow_Wfid() {
return (EAttribute)workflowEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflow_Uuid() {
return (EAttribute)workflowEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflow_Name() {
return (EAttribute)workflowEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getWorkflow_ToplevelActivity() {
return (EReference)workflowEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getWorkflow_StatusEvents() {
return (EReference)workflowEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getWorkflow_DeviceEvents() {
return (EReference)workflowEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getWorkflow_ComponentEvents() {
return (EReference)workflowEClass.getEStructuralFeatures().get(7);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getActivity() {
return activityEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivity_Oid() {
return (EAttribute)activityEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivity_Actid() {
return (EAttribute)activityEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivity_Name() {
return (EAttribute)activityEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivity_Type() {
return (EAttribute)activityEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivity_BranchID() {
return (EAttribute)activityEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivity_ParentWorkflow() {
return (EReference)activityEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivity_Instances() {
return (EReference)activityEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivity_StatusEvents() {
return (EReference)activityEClass.getEStructuralFeatures().get(7);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivity_Parent() {
return (EReference)activityEClass.getEStructuralFeatures().get(8);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivity_Children() {
return (EReference)activityEClass.getEStructuralFeatures().get(9);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getActivityInstance() {
return activityInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstance_Oid() {
return (EAttribute)activityInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstance_Instid() {
return (EAttribute)activityInstanceEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstance_IterationID() {
return (EAttribute)activityInstanceEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivityInstance_BaseActivity() {
return (EReference)activityInstanceEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivityInstance_ParentWorkflow() {
return (EReference)activityInstanceEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivityInstance_ParentInstance() {
return (EReference)activityInstanceEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivityInstance_StatusEvents() {
return (EReference)activityInstanceEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getWorkflowStatusEvent() {
return workflowStatusEventEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflowStatusEvent_Oid() {
return (EAttribute)workflowStatusEventEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflowStatusEvent_NewStatus() {
return (EAttribute)workflowStatusEventEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflowStatusEvent_OldStatus() {
return (EAttribute)workflowStatusEventEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWorkflowStatusEvent_Timestamp() {
return (EAttribute)workflowStatusEventEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getWorkflowStatusEvent_ParentWorkflow() {
return (EReference)workflowStatusEventEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getActivityStatusEvent() {
return activityStatusEventEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityStatusEvent_Oid() {
return (EAttribute)activityStatusEventEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityStatusEvent_NewStatus() {
return (EAttribute)activityStatusEventEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityStatusEvent_OldStatus() {
return (EAttribute)activityStatusEventEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityStatusEvent_Timestamp() {
return (EAttribute)activityStatusEventEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivityStatusEvent_ParentActivity() {
return (EReference)activityStatusEventEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getActivityInstanceStatusEvent() {
return activityInstanceStatusEventEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstanceStatusEvent_Oid() {
return (EAttribute)activityInstanceStatusEventEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstanceStatusEvent_NewStatus() {
return (EAttribute)activityInstanceStatusEventEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstanceStatusEvent_OldStatus() {
return (EAttribute)activityInstanceStatusEventEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getActivityInstanceStatusEvent_Timestamp() {
return (EAttribute)activityInstanceStatusEventEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getActivityInstanceStatusEvent_ParentInstance() {
return (EReference)activityInstanceStatusEventEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getDeviceInstanceStatusEvent() {
return deviceInstanceStatusEventEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_Oid() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_DeviceType() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_DeviceID() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_NewStatus() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_OldStatus() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_Timestamp() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_ExecutedImplID() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeviceInstanceStatusEvent_DeviceSlotCount() {
return (EAttribute)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(7);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getDeviceInstanceStatusEvent_ParentWorkflow() {
return (EReference)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(8);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getDeviceInstanceStatusEvent_ExecutedInstance() {
return (EReference)deviceInstanceStatusEventEClass.getEStructuralFeatures().get(9);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getComponentStatusEvent() {
return componentStatusEventEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getComponentStatusEvent_Oid() {
return (EAttribute)componentStatusEventEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getComponentStatusEvent_ComponentType() {
return (EAttribute)componentStatusEventEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getComponentStatusEvent_NewStatus() {
return (EAttribute)componentStatusEventEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getComponentStatusEvent_OldStatus() {
return (EAttribute)componentStatusEventEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getComponentStatusEvent_Timestamp() {
return (EAttribute)componentStatusEventEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getComponentStatusEvent_Workflow() {
return (EReference)componentStatusEventEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PerftoolFactory getPerftoolFactory() {
return (PerftoolFactory)getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isCreated = false;
/**
* Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createPackageContents() {
if (isCreated) return;
isCreated = true;
// Create classes and their features
workflowEClass = createEClass(WORKFLOW);
createEAttribute(workflowEClass, WORKFLOW__OID);
createEAttribute(workflowEClass, WORKFLOW__WFID);
createEAttribute(workflowEClass, WORKFLOW__UUID);
createEAttribute(workflowEClass, WORKFLOW__NAME);
createEReference(workflowEClass, WORKFLOW__TOPLEVEL_ACTIVITY);
createEReference(workflowEClass, WORKFLOW__STATUS_EVENTS);
createEReference(workflowEClass, WORKFLOW__DEVICE_EVENTS);
createEReference(workflowEClass, WORKFLOW__COMPONENT_EVENTS);
activityEClass = createEClass(ACTIVITY);
createEAttribute(activityEClass, ACTIVITY__OID);
createEAttribute(activityEClass, ACTIVITY__ACTID);
createEAttribute(activityEClass, ACTIVITY__NAME);
createEAttribute(activityEClass, ACTIVITY__TYPE);
createEAttribute(activityEClass, ACTIVITY__BRANCH_ID);
createEReference(activityEClass, ACTIVITY__PARENT_WORKFLOW);
createEReference(activityEClass, ACTIVITY__INSTANCES);
createEReference(activityEClass, ACTIVITY__STATUS_EVENTS);
createEReference(activityEClass, ACTIVITY__PARENT);
createEReference(activityEClass, ACTIVITY__CHILDREN);
activityInstanceEClass = createEClass(ACTIVITY_INSTANCE);
createEAttribute(activityInstanceEClass, ACTIVITY_INSTANCE__OID);
createEAttribute(activityInstanceEClass, ACTIVITY_INSTANCE__INSTID);
createEAttribute(activityInstanceEClass, ACTIVITY_INSTANCE__ITERATION_ID);
createEReference(activityInstanceEClass, ACTIVITY_INSTANCE__BASE_ACTIVITY);
createEReference(activityInstanceEClass, ACTIVITY_INSTANCE__PARENT_WORKFLOW);
createEReference(activityInstanceEClass, ACTIVITY_INSTANCE__PARENT_INSTANCE);
createEReference(activityInstanceEClass, ACTIVITY_INSTANCE__STATUS_EVENTS);
workflowStatusEventEClass = createEClass(WORKFLOW_STATUS_EVENT);
createEAttribute(workflowStatusEventEClass, WORKFLOW_STATUS_EVENT__OID);
createEAttribute(workflowStatusEventEClass, WORKFLOW_STATUS_EVENT__NEW_STATUS);
createEAttribute(workflowStatusEventEClass, WORKFLOW_STATUS_EVENT__OLD_STATUS);
createEAttribute(workflowStatusEventEClass, WORKFLOW_STATUS_EVENT__TIMESTAMP);
createEReference(workflowStatusEventEClass, WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW);
activityStatusEventEClass = createEClass(ACTIVITY_STATUS_EVENT);
createEAttribute(activityStatusEventEClass, ACTIVITY_STATUS_EVENT__OID);
createEAttribute(activityStatusEventEClass, ACTIVITY_STATUS_EVENT__NEW_STATUS);
createEAttribute(activityStatusEventEClass, ACTIVITY_STATUS_EVENT__OLD_STATUS);
createEAttribute(activityStatusEventEClass, ACTIVITY_STATUS_EVENT__TIMESTAMP);
createEReference(activityStatusEventEClass, ACTIVITY_STATUS_EVENT__PARENT_ACTIVITY);
activityInstanceStatusEventEClass = createEClass(ACTIVITY_INSTANCE_STATUS_EVENT);
createEAttribute(activityInstanceStatusEventEClass, ACTIVITY_INSTANCE_STATUS_EVENT__OID);
createEAttribute(activityInstanceStatusEventEClass, ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS);
createEAttribute(activityInstanceStatusEventEClass, ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS);
createEAttribute(activityInstanceStatusEventEClass, ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP);
createEReference(activityInstanceStatusEventEClass, ACTIVITY_INSTANCE_STATUS_EVENT__PARENT_INSTANCE);
deviceInstanceStatusEventEClass = createEClass(DEVICE_INSTANCE_STATUS_EVENT);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__OID);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID);
createEAttribute(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT);
createEReference(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW);
createEReference(deviceInstanceStatusEventEClass, DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE);
componentStatusEventEClass = createEClass(COMPONENT_STATUS_EVENT);
createEAttribute(componentStatusEventEClass, COMPONENT_STATUS_EVENT__OID);
createEAttribute(componentStatusEventEClass, COMPONENT_STATUS_EVENT__COMPONENT_TYPE);
createEAttribute(componentStatusEventEClass, COMPONENT_STATUS_EVENT__NEW_STATUS);
createEAttribute(componentStatusEventEClass, COMPONENT_STATUS_EVENT__OLD_STATUS);
createEAttribute(componentStatusEventEClass, COMPONENT_STATUS_EVENT__TIMESTAMP);
createEReference(componentStatusEventEClass, COMPONENT_STATUS_EVENT__WORKFLOW);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isInitialized = false;
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized) return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
// Initialize classes, features, and operations; add parameters
initEClass(workflowEClass, Workflow.class, "Workflow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getWorkflow_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWorkflow_Wfid(), ecorePackage.getELong(), "wfid", null, 1, 1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWorkflow_Uuid(), ecorePackage.getEString(), "uuid", null, 1, 1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWorkflow_Name(), ecorePackage.getEString(), "name", null, 1, 1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getWorkflow_ToplevelActivity(), this.getActivity(), null, "toplevelActivity", null, 0, 1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getWorkflow_StatusEvents(), this.getWorkflowStatusEvent(), this.getWorkflowStatusEvent_ParentWorkflow(), "statusEvents", null, 0, -1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getWorkflow_DeviceEvents(), this.getDeviceInstanceStatusEvent(), this.getDeviceInstanceStatusEvent_ParentWorkflow(), "deviceEvents", null, 0, -1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getWorkflow_ComponentEvents(), this.getComponentStatusEvent(), this.getComponentStatusEvent_Workflow(), "componentEvents", null, 0, -1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(activityEClass, Activity.class, "Activity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getActivity_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivity_Actid(), ecorePackage.getELong(), "actid", null, 1, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivity_Name(), ecorePackage.getEString(), "name", null, 1, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivity_Type(), ecorePackage.getEString(), "type", null, 1, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivity_BranchID(), ecorePackage.getELong(), "branchID", null, 1, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivity_ParentWorkflow(), this.getWorkflow(), null, "parentWorkflow", null, 1, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getActivity_Instances(), this.getActivityInstance(), this.getActivityInstance_BaseActivity(), "instances", null, 0, -1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getActivity_StatusEvents(), this.getActivityStatusEvent(), this.getActivityStatusEvent_ParentActivity(), "statusEvents", null, 0, -1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getActivity_Parent(), this.getActivity(), this.getActivity_Children(), "parent", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivity_Children(), this.getActivity(), this.getActivity_Parent(), "children", null, 0, -1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(activityInstanceEClass, ActivityInstance.class, "ActivityInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getActivityInstance_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityInstance_Instid(), ecorePackage.getELong(), "instid", null, 1, 1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityInstance_IterationID(), ecorePackage.getELong(), "iterationID", null, 1, 1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivityInstance_BaseActivity(), this.getActivity(), this.getActivity_Instances(), "baseActivity", null, 1, 1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivityInstance_ParentWorkflow(), this.getWorkflow(), null, "parentWorkflow", null, 0, 1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivityInstance_ParentInstance(), this.getActivityInstance(), null, "parentInstance", null, 0, 1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivityInstance_StatusEvents(), this.getActivityInstanceStatusEvent(), this.getActivityInstanceStatusEvent_ParentInstance(), "statusEvents", null, 0, -1, ActivityInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(workflowStatusEventEClass, WorkflowStatusEvent.class, "WorkflowStatusEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getWorkflowStatusEvent_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, WorkflowStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWorkflowStatusEvent_NewStatus(), ecorePackage.getEString(), "newStatus", null, 1, 1, WorkflowStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWorkflowStatusEvent_OldStatus(), ecorePackage.getEString(), "oldStatus", null, 1, 1, WorkflowStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWorkflowStatusEvent_Timestamp(), ecorePackage.getELong(), "timestamp", null, 1, 1, WorkflowStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getWorkflowStatusEvent_ParentWorkflow(), this.getWorkflow(), this.getWorkflow_StatusEvents(), "parentWorkflow", null, 1, 1, WorkflowStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(activityStatusEventEClass, ActivityStatusEvent.class, "ActivityStatusEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getActivityStatusEvent_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, ActivityStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityStatusEvent_NewStatus(), ecorePackage.getEString(), "newStatus", null, 1, 1, ActivityStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityStatusEvent_OldStatus(), ecorePackage.getEString(), "oldStatus", null, 1, 1, ActivityStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityStatusEvent_Timestamp(), ecorePackage.getELong(), "timestamp", null, 1, 1, ActivityStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivityStatusEvent_ParentActivity(), this.getActivity(), this.getActivity_StatusEvents(), "parentActivity", null, 1, 1, ActivityStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(activityInstanceStatusEventEClass, ActivityInstanceStatusEvent.class, "ActivityInstanceStatusEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getActivityInstanceStatusEvent_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, ActivityInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityInstanceStatusEvent_NewStatus(), ecorePackage.getEString(), "newStatus", null, 1, 1, ActivityInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityInstanceStatusEvent_OldStatus(), ecorePackage.getEString(), "oldStatus", null, 1, 1, ActivityInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getActivityInstanceStatusEvent_Timestamp(), ecorePackage.getELong(), "timestamp", null, 1, 1, ActivityInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivityInstanceStatusEvent_ParentInstance(), this.getActivityInstance(), this.getActivityInstance_StatusEvents(), "parentInstance", null, 1, 1, ActivityInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(deviceInstanceStatusEventEClass, DeviceInstanceStatusEvent.class, "DeviceInstanceStatusEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getDeviceInstanceStatusEvent_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_DeviceType(), ecorePackage.getEString(), "deviceType", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_DeviceID(), ecorePackage.getELong(), "deviceID", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_NewStatus(), ecorePackage.getEString(), "newStatus", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_OldStatus(), ecorePackage.getEString(), "oldStatus", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_Timestamp(), ecorePackage.getELong(), "timestamp", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_ExecutedImplID(), ecorePackage.getELong(), "executedImplID", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeviceInstanceStatusEvent_DeviceSlotCount(), ecorePackage.getELong(), "deviceSlotCount", null, 1, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDeviceInstanceStatusEvent_ParentWorkflow(), this.getWorkflow(), this.getWorkflow_DeviceEvents(), "parentWorkflow", null, 0, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDeviceInstanceStatusEvent_ExecutedInstance(), this.getActivityInstance(), null, "executedInstance", null, 0, 1, DeviceInstanceStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(componentStatusEventEClass, ComponentStatusEvent.class, "ComponentStatusEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getComponentStatusEvent_Oid(), ecorePackage.getEInt(), "oid", null, 1, 1, ComponentStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getComponentStatusEvent_ComponentType(), ecorePackage.getEString(), "componentType", null, 1, 1, ComponentStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getComponentStatusEvent_NewStatus(), ecorePackage.getEString(), "newStatus", null, 1, 1, ComponentStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getComponentStatusEvent_OldStatus(), ecorePackage.getEString(), "oldStatus", null, 1, 1, ComponentStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getComponentStatusEvent_Timestamp(), ecorePackage.getELong(), "timestamp", null, 1, 1, ComponentStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getComponentStatusEvent_Workflow(), this.getWorkflow(), this.getWorkflow_ComponentEvents(), "workflow", null, 0, 1, ComponentStatusEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
} //PerftoolPackageImpl
@@ -0,0 +1,544 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ComponentStatusEvent;
import at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import at.ac.uibk.wfr.perftool.WorkflowStatusEvent;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Workflow</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getWfid <em>Wfid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getUuid <em>Uuid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getName <em>Name</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getToplevelActivity <em>Toplevel Activity</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getStatusEvents <em>Status Events</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getDeviceEvents <em>Device Events</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowImpl#getComponentEvents <em>Component Events</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class WorkflowImpl extends MinimalEObjectImpl.Container implements Workflow {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getWfid() <em>Wfid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWfid()
* @generated
* @ordered
*/
protected static final long WFID_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getWfid() <em>Wfid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWfid()
* @generated
* @ordered
*/
protected long wfid = WFID_EDEFAULT;
/**
* The default value of the '{@link #getUuid() <em>Uuid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUuid()
* @generated
* @ordered
*/
protected static final String UUID_EDEFAULT = null;
/**
* The cached value of the '{@link #getUuid() <em>Uuid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUuid()
* @generated
* @ordered
*/
protected String uuid = UUID_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The cached value of the '{@link #getToplevelActivity() <em>Toplevel Activity</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getToplevelActivity()
* @generated
* @ordered
*/
protected Activity toplevelActivity;
/**
* The cached value of the '{@link #getStatusEvents() <em>Status Events</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatusEvents()
* @generated
* @ordered
*/
protected EList<WorkflowStatusEvent> statusEvents;
/**
* The cached value of the '{@link #getDeviceEvents() <em>Device Events</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDeviceEvents()
* @generated
* @ordered
*/
protected EList<DeviceInstanceStatusEvent> deviceEvents;
/**
* The cached value of the '{@link #getComponentEvents() <em>Component Events</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComponentEvents()
* @generated
* @ordered
*/
protected EList<ComponentStatusEvent> componentEvents;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected WorkflowImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.WORKFLOW;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getWfid() {
return wfid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWfid(long newWfid) {
long oldWfid = wfid;
wfid = newWfid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW__WFID, oldWfid, wfid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getUuid() {
return uuid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUuid(String newUuid) {
String oldUuid = uuid;
uuid = newUuid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW__UUID, oldUuid, uuid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Activity getToplevelActivity() {
return toplevelActivity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetToplevelActivity(Activity newToplevelActivity, NotificationChain msgs) {
Activity oldToplevelActivity = toplevelActivity;
toplevelActivity = newToplevelActivity;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY, oldToplevelActivity, newToplevelActivity);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setToplevelActivity(Activity newToplevelActivity) {
if (newToplevelActivity != toplevelActivity) {
NotificationChain msgs = null;
if (toplevelActivity != null)
msgs = ((InternalEObject)toplevelActivity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY, null, msgs);
if (newToplevelActivity != null)
msgs = ((InternalEObject)newToplevelActivity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY, null, msgs);
msgs = basicSetToplevelActivity(newToplevelActivity, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY, newToplevelActivity, newToplevelActivity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<WorkflowStatusEvent> getStatusEvents() {
if (statusEvents == null) {
statusEvents = new EObjectContainmentWithInverseEList<WorkflowStatusEvent>(WorkflowStatusEvent.class, this, PerftoolPackage.WORKFLOW__STATUS_EVENTS, PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW);
}
return statusEvents;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DeviceInstanceStatusEvent> getDeviceEvents() {
if (deviceEvents == null) {
deviceEvents = new EObjectContainmentWithInverseEList<DeviceInstanceStatusEvent>(DeviceInstanceStatusEvent.class, this, PerftoolPackage.WORKFLOW__DEVICE_EVENTS, PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__PARENT_WORKFLOW);
}
return deviceEvents;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ComponentStatusEvent> getComponentEvents() {
if (componentEvents == null) {
componentEvents = new EObjectContainmentWithInverseEList<ComponentStatusEvent>(ComponentStatusEvent.class, this, PerftoolPackage.WORKFLOW__COMPONENT_EVENTS, PerftoolPackage.COMPONENT_STATUS_EVENT__WORKFLOW);
}
return componentEvents;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getStatusEvents()).basicAdd(otherEnd, msgs);
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getDeviceEvents()).basicAdd(otherEnd, msgs);
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getComponentEvents()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY:
return basicSetToplevelActivity(null, msgs);
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
return ((InternalEList<?>)getStatusEvents()).basicRemove(otherEnd, msgs);
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
return ((InternalEList<?>)getDeviceEvents()).basicRemove(otherEnd, msgs);
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
return ((InternalEList<?>)getComponentEvents()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.WORKFLOW__OID:
return getOid();
case PerftoolPackage.WORKFLOW__WFID:
return getWfid();
case PerftoolPackage.WORKFLOW__UUID:
return getUuid();
case PerftoolPackage.WORKFLOW__NAME:
return getName();
case PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY:
return getToplevelActivity();
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
return getStatusEvents();
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
return getDeviceEvents();
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
return getComponentEvents();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.WORKFLOW__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.WORKFLOW__WFID:
setWfid((Long)newValue);
return;
case PerftoolPackage.WORKFLOW__UUID:
setUuid((String)newValue);
return;
case PerftoolPackage.WORKFLOW__NAME:
setName((String)newValue);
return;
case PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY:
setToplevelActivity((Activity)newValue);
return;
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
getStatusEvents().clear();
getStatusEvents().addAll((Collection<? extends WorkflowStatusEvent>)newValue);
return;
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
getDeviceEvents().clear();
getDeviceEvents().addAll((Collection<? extends DeviceInstanceStatusEvent>)newValue);
return;
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
getComponentEvents().clear();
getComponentEvents().addAll((Collection<? extends ComponentStatusEvent>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.WORKFLOW__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW__WFID:
setWfid(WFID_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW__UUID:
setUuid(UUID_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW__NAME:
setName(NAME_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY:
setToplevelActivity((Activity)null);
return;
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
getStatusEvents().clear();
return;
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
getDeviceEvents().clear();
return;
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
getComponentEvents().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.WORKFLOW__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.WORKFLOW__WFID:
return wfid != WFID_EDEFAULT;
case PerftoolPackage.WORKFLOW__UUID:
return UUID_EDEFAULT == null ? uuid != null : !UUID_EDEFAULT.equals(uuid);
case PerftoolPackage.WORKFLOW__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case PerftoolPackage.WORKFLOW__TOPLEVEL_ACTIVITY:
return toplevelActivity != null;
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
return statusEvents != null && !statusEvents.isEmpty();
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
return deviceEvents != null && !deviceEvents.isEmpty();
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
return componentEvents != null && !componentEvents.isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", wfid: ");
result.append(wfid);
result.append(", uuid: ");
result.append(uuid);
result.append(", name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //WorkflowImpl
@@ -0,0 +1,426 @@
/**
*/
package at.ac.uibk.wfr.perftool.impl;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
import at.ac.uibk.wfr.perftool.Workflow;
import at.ac.uibk.wfr.perftool.WorkflowStatusEvent;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Workflow Status Event</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowStatusEventImpl#getOid <em>Oid</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowStatusEventImpl#getNewStatus <em>New Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowStatusEventImpl#getOldStatus <em>Old Status</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowStatusEventImpl#getTimestamp <em>Timestamp</em>}</li>
* <li>{@link at.ac.uibk.wfr.perftool.impl.WorkflowStatusEventImpl#getParentWorkflow <em>Parent Workflow</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class WorkflowStatusEventImpl extends MinimalEObjectImpl.Container implements WorkflowStatusEvent {
/**
* The default value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected static final int OID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOid() <em>Oid</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOid()
* @generated
* @ordered
*/
protected int oid = OID_EDEFAULT;
/**
* The default value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected static final String NEW_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getNewStatus() <em>New Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNewStatus()
* @generated
* @ordered
*/
protected String newStatus = NEW_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected static final String OLD_STATUS_EDEFAULT = null;
/**
* The cached value of the '{@link #getOldStatus() <em>Old Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOldStatus()
* @generated
* @ordered
*/
protected String oldStatus = OLD_STATUS_EDEFAULT;
/**
* The default value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected static final long TIMESTAMP_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getTimestamp() <em>Timestamp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTimestamp()
* @generated
* @ordered
*/
protected long timestamp = TIMESTAMP_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected WorkflowStatusEventImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return PerftoolPackage.Literals.WORKFLOW_STATUS_EVENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOid() {
return oid;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOid(int newOid) {
int oldOid = oid;
oid = newOid;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW_STATUS_EVENT__OID, oldOid, oid));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNewStatus() {
return newStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNewStatus(String newNewStatus) {
String oldNewStatus = newStatus;
newStatus = newNewStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW_STATUS_EVENT__NEW_STATUS, oldNewStatus, newStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOldStatus() {
return oldStatus;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOldStatus(String newOldStatus) {
String oldOldStatus = oldStatus;
oldStatus = newOldStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW_STATUS_EVENT__OLD_STATUS, oldOldStatus, oldStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public long getTimestamp() {
return timestamp;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimestamp(long newTimestamp) {
long oldTimestamp = timestamp;
timestamp = newTimestamp;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW_STATUS_EVENT__TIMESTAMP, oldTimestamp, timestamp));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Workflow getParentWorkflow() {
if (eContainerFeatureID() != PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW) return null;
return (Workflow)eInternalContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetParentWorkflow(Workflow newParentWorkflow, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)newParentWorkflow, PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentWorkflow(Workflow newParentWorkflow) {
if (newParentWorkflow != eInternalContainer() || (eContainerFeatureID() != PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW && newParentWorkflow != null)) {
if (EcoreUtil.isAncestor(this, newParentWorkflow))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newParentWorkflow != null)
msgs = ((InternalEObject)newParentWorkflow).eInverseAdd(this, PerftoolPackage.WORKFLOW__STATUS_EVENTS, Workflow.class, msgs);
msgs = basicSetParentWorkflow(newParentWorkflow, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW, newParentWorkflow, newParentWorkflow));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetParentWorkflow((Workflow)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
return basicSetParentWorkflow(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
return eInternalContainer().eInverseRemove(this, PerftoolPackage.WORKFLOW__STATUS_EVENTS, Workflow.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OID:
return getOid();
case PerftoolPackage.WORKFLOW_STATUS_EVENT__NEW_STATUS:
return getNewStatus();
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OLD_STATUS:
return getOldStatus();
case PerftoolPackage.WORKFLOW_STATUS_EVENT__TIMESTAMP:
return getTimestamp();
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
return getParentWorkflow();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OID:
setOid((Integer)newValue);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__NEW_STATUS:
setNewStatus((String)newValue);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OLD_STATUS:
setOldStatus((String)newValue);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__TIMESTAMP:
setTimestamp((Long)newValue);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
setParentWorkflow((Workflow)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OID:
setOid(OID_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__NEW_STATUS:
setNewStatus(NEW_STATUS_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OLD_STATUS:
setOldStatus(OLD_STATUS_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__TIMESTAMP:
setTimestamp(TIMESTAMP_EDEFAULT);
return;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
setParentWorkflow((Workflow)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OID:
return oid != OID_EDEFAULT;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__NEW_STATUS:
return NEW_STATUS_EDEFAULT == null ? newStatus != null : !NEW_STATUS_EDEFAULT.equals(newStatus);
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OLD_STATUS:
return OLD_STATUS_EDEFAULT == null ? oldStatus != null : !OLD_STATUS_EDEFAULT.equals(oldStatus);
case PerftoolPackage.WORKFLOW_STATUS_EVENT__TIMESTAMP:
return timestamp != TIMESTAMP_EDEFAULT;
case PerftoolPackage.WORKFLOW_STATUS_EVENT__PARENT_WORKFLOW:
return getParentWorkflow() != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (oid: ");
result.append(oid);
result.append(", newStatus: ");
result.append(newStatus);
result.append(", oldStatus: ");
result.append(oldStatus);
result.append(", timestamp: ");
result.append(timestamp);
result.append(')');
return result.toString();
}
} //WorkflowStatusEventImpl
@@ -0,0 +1,246 @@
/**
*/
package at.ac.uibk.wfr.perftool.util;
import at.ac.uibk.wfr.perftool.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see at.ac.uibk.wfr.perftool.PerftoolPackage
* @generated
*/
public class PerftoolAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static PerftoolPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PerftoolAdapterFactory() {
if (modelPackage == null) {
modelPackage = PerftoolPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PerftoolSwitch<Adapter> modelSwitch =
new PerftoolSwitch<Adapter>() {
@Override
public Adapter caseWorkflow(Workflow object) {
return createWorkflowAdapter();
}
@Override
public Adapter caseActivity(Activity object) {
return createActivityAdapter();
}
@Override
public Adapter caseActivityInstance(ActivityInstance object) {
return createActivityInstanceAdapter();
}
@Override
public Adapter caseWorkflowStatusEvent(WorkflowStatusEvent object) {
return createWorkflowStatusEventAdapter();
}
@Override
public Adapter caseActivityStatusEvent(ActivityStatusEvent object) {
return createActivityStatusEventAdapter();
}
@Override
public Adapter caseActivityInstanceStatusEvent(ActivityInstanceStatusEvent object) {
return createActivityInstanceStatusEventAdapter();
}
@Override
public Adapter caseDeviceInstanceStatusEvent(DeviceInstanceStatusEvent object) {
return createDeviceInstanceStatusEventAdapter();
}
@Override
public Adapter caseComponentStatusEvent(ComponentStatusEvent object) {
return createComponentStatusEventAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.Workflow <em>Workflow</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.Workflow
* @generated
*/
public Adapter createWorkflowAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.Activity <em>Activity</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.Activity
* @generated
*/
public Adapter createActivityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.ActivityInstance <em>Activity Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.ActivityInstance
* @generated
*/
public Adapter createActivityInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent <em>Workflow Status Event</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.WorkflowStatusEvent
* @generated
*/
public Adapter createWorkflowStatusEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.ActivityStatusEvent <em>Activity Status Event</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.ActivityStatusEvent
* @generated
*/
public Adapter createActivityStatusEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent <em>Activity Instance Status Event</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent
* @generated
*/
public Adapter createActivityInstanceStatusEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent <em>Device Instance Status Event</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent
* @generated
*/
public Adapter createDeviceInstanceStatusEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link at.ac.uibk.wfr.perftool.ComponentStatusEvent <em>Component Status Event</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see at.ac.uibk.wfr.perftool.ComponentStatusEvent
* @generated
*/
public Adapter createComponentStatusEventAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //PerftoolAdapterFactory
@@ -0,0 +1,257 @@
/**
*/
package at.ac.uibk.wfr.perftool.util;
import at.ac.uibk.wfr.perftool.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
* @see at.ac.uibk.wfr.perftool.PerftoolPackage
* @generated
*/
public class PerftoolSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static PerftoolPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PerftoolSwitch() {
if (modelPackage == null) {
modelPackage = PerftoolPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case PerftoolPackage.WORKFLOW: {
Workflow workflow = (Workflow)theEObject;
T result = caseWorkflow(workflow);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.ACTIVITY: {
Activity activity = (Activity)theEObject;
T result = caseActivity(activity);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.ACTIVITY_INSTANCE: {
ActivityInstance activityInstance = (ActivityInstance)theEObject;
T result = caseActivityInstance(activityInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.WORKFLOW_STATUS_EVENT: {
WorkflowStatusEvent workflowStatusEvent = (WorkflowStatusEvent)theEObject;
T result = caseWorkflowStatusEvent(workflowStatusEvent);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.ACTIVITY_STATUS_EVENT: {
ActivityStatusEvent activityStatusEvent = (ActivityStatusEvent)theEObject;
T result = caseActivityStatusEvent(activityStatusEvent);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT: {
ActivityInstanceStatusEvent activityInstanceStatusEvent = (ActivityInstanceStatusEvent)theEObject;
T result = caseActivityInstanceStatusEvent(activityInstanceStatusEvent);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT: {
DeviceInstanceStatusEvent deviceInstanceStatusEvent = (DeviceInstanceStatusEvent)theEObject;
T result = caseDeviceInstanceStatusEvent(deviceInstanceStatusEvent);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PerftoolPackage.COMPONENT_STATUS_EVENT: {
ComponentStatusEvent componentStatusEvent = (ComponentStatusEvent)theEObject;
T result = caseComponentStatusEvent(componentStatusEvent);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Workflow</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Workflow</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWorkflow(Workflow object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Activity</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Activity</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseActivity(Activity object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Activity Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Activity Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseActivityInstance(ActivityInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Workflow Status Event</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Workflow Status Event</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWorkflowStatusEvent(WorkflowStatusEvent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Activity Status Event</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Activity Status Event</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseActivityStatusEvent(ActivityStatusEvent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Activity Instance Status Event</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Activity Instance Status Event</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseActivityInstanceStatusEvent(ActivityInstanceStatusEvent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Device Instance Status Event</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Device Instance Status Event</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDeviceInstanceStatusEvent(DeviceInstanceStatusEvent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Component Status Event</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Component Status Event</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseComponentStatusEvent(ComponentStatusEvent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //PerftoolSwitch
@@ -0,0 +1,25 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.ActivityInstance;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ActivityInstanceStatusEventValidator {
boolean validate();
boolean validateOid(int value);
boolean validateNewStatus(String value);
boolean validateOldStatus(String value);
boolean validateTimestamp(long value);
boolean validateTimestamp(int value);
boolean validateParentInstance(ActivityInstance value);
}
@@ -0,0 +1,34 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.Workflow;
import org.eclipse.emf.common.util.EList;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.ActivityInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ActivityInstanceValidator {
boolean validate();
boolean validateOid(int value);
boolean validateInstid(long value);
boolean validateIterationID(long value);
boolean validateInstid(int value);
boolean validateIterationID(int value);
boolean validateBaseActivity(Activity value);
boolean validateParentWorkflow(Workflow value);
boolean validateParentInstance(ActivityInstance value);
boolean validateStatusEvents(EList<ActivityInstanceStatusEvent> value);
}
@@ -0,0 +1,25 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.Activity;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.ActivityStatusEvent}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ActivityStatusEventValidator {
boolean validate();
boolean validateOid(int value);
boolean validateNewStatus(String value);
boolean validateOldStatus(String value);
boolean validateTimestamp(long value);
boolean validateTimestamp(int value);
boolean validateParentActivity(Activity value);
}
@@ -0,0 +1,40 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.ActivityStatusEvent;
import at.ac.uibk.wfr.perftool.Workflow;
import org.eclipse.emf.common.util.EList;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.Activity}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ActivityValidator {
boolean validate();
boolean validateOid(int value);
boolean validateActid(long value);
boolean validateActid(int value);
boolean validateName(String value);
boolean validateType(String value);
boolean validateBranchID(long value);
boolean validateBranchID(int value);
boolean validateParentWorkflow(Workflow value);
boolean validateInstances(EList<ActivityInstance> value);
boolean validateStatusEvents(EList<ActivityStatusEvent> value);
boolean validateParent(Activity value);
boolean validateChildren(EList<Activity> value);
}
@@ -0,0 +1,26 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.Workflow;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.ComponentStatusEvent}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ComponentStatusEventValidator {
boolean validate();
boolean validateOid(int value);
boolean validateComponentType(String value);
boolean validateNewStatus(String value);
boolean validateOldStatus(String value);
boolean validateTimestamp(long value);
boolean validateTimestamp(int value);
boolean validateWorkflow(Workflow value);
}
@@ -0,0 +1,40 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.ActivityInstance;
import at.ac.uibk.wfr.perftool.Workflow;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface DeviceInstanceStatusEventValidator {
boolean validate();
boolean validateOid(int value);
boolean validateDeviceType(String value);
boolean validateDeviceID(long value);
boolean validateDeviceID(int value);
boolean validateNewStatus(String value);
boolean validateOldStatus(String value);
boolean validateTimestamp(long value);
boolean validateExecutedImplID(long value);
boolean validateDeviceSlotCount(long value);
boolean validateTimestamp(int value);
boolean validateExecutedImplID(int value);
boolean validateDeviceSlotCount(int value);
boolean validateDevicesSlotCount(int value);
boolean validateParentWorkflow(Workflow value);
boolean validateExecutedInstance(ActivityInstance value);
}
@@ -0,0 +1,25 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.Workflow;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface WorkflowStatusEventValidator {
boolean validate();
boolean validateOid(int value);
boolean validateNewStatus(String value);
boolean validateOldStatus(String value);
boolean validateTimestamp(int value);
boolean validateTimestamp(long value);
boolean validateParentWorkflow(Workflow value);
}
@@ -0,0 +1,37 @@
/**
*
* $Id$
*/
package at.ac.uibk.wfr.perftool.validation;
import at.ac.uibk.wfr.perftool.Activity;
import at.ac.uibk.wfr.perftool.ComponentStatusEvent;
import at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent;
import at.ac.uibk.wfr.perftool.WorkflowStatusEvent;
import org.eclipse.emf.common.util.EList;
/**
* A sample validator interface for {@link at.ac.uibk.wfr.perftool.Workflow}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface WorkflowValidator {
boolean validate();
boolean validateOid(int value);
boolean validateWfid(long value);
boolean validateWfid(int value);
boolean validateUuid(String value);
boolean validateName(String value);
boolean validateActivities(EList<Activity> value);
boolean validateToplevelActivity(Activity value);
boolean validateStatusEvents(EList<WorkflowStatusEvent> value);
boolean validateDeviceEvents(EList<DeviceInstanceStatusEvent> value);
boolean validateComponentEvents(EList<ComponentStatusEvent> value);
}
+52
View File
@@ -0,0 +1,52 @@
package perftoolutils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.teneo.extension.ExtensionManager;
import org.eclipse.emf.teneo.hibernate.HbDataStore;
import org.eclipse.emf.teneo.hibernate.HbHelper;
import org.eclipse.emf.teneo.mapping.strategy.SQLNameStrategy;
import org.hibernate.cfg.Configuration;
import at.ac.uibk.wfr.perftool.PerftoolPackage;
public class DBCreator {
/**
* @param args
*/
public static void main(String[] args) {
InputStream propsIn = DBCreator.class.getResourceAsStream("teneo.properties");
Properties props = new Properties();
try {
props.load(propsIn);
} catch (IOException e) {
e.printStackTrace();
}
//*************** Initialize Teneo Hibernate DataStore *************************************
HbDataStore hbds = (HbDataStore) HbHelper.INSTANCE.createRegisterDataStore("perfdb");
final ExtensionManager extensionManager = hbds.getExtensionManager();
extensionManager.registerExtension(SQLNameStrategy.class.getName(), MySQLNameStrategy.class.getName());
hbds.setDataStoreProperties(props);
hbds.setEPackages(new EPackage[] { PerftoolPackage.eINSTANCE }); //Register EMF package
hbds.initialize();
System.out.println("\nHibernate Mapping XML:\n============================");
Configuration hconf = hbds.getHibernateConfiguration();
System.out.println(hbds.getMappingXML());
System.out.println("============================");
System.out.println("\nDatabase Create Script:\n============================");
for (String s : hconf.generateSchemaCreationScript(org.hibernate.dialect.Dialect.getDialect(props))) {
System.out.println(s);
}
System.out.println("============================");
}
}
+9
View File
@@ -0,0 +1,9 @@
package perftoolutils;
import org.eclipse.emf.teneo.mapping.strategy.impl.TeneoSQLNameStrategy;
public class MySQLNameStrategy extends TeneoSQLNameStrategy {
}
+223
View File
@@ -0,0 +1,223 @@
package perftoolutils;
/*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
*
*/
import java.sql.Types;
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.function.AbstractAnsiTrimEmulationFunction;
import org.hibernate.dialect.function.NoArgSQLFunction;
import org.hibernate.dialect.function.SQLFunction;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.dialect.function.VarArgsSQLFunction;
import org.hibernate.type.StandardBasicTypes;
public class SQLiteDialect extends Dialect {
public SQLiteDialect() {
registerColumnType(Types.BIT, "boolean");
registerColumnType(Types.TINYINT, "tinyint");
registerColumnType(Types.SMALLINT, "smallint");
registerColumnType(Types.INTEGER, "integer");
registerColumnType(Types.BIGINT, "bigint");
registerColumnType(Types.FLOAT, "float");
registerColumnType(Types.REAL, "real");
registerColumnType(Types.DOUBLE, "double");
registerColumnType(Types.NUMERIC, "numeric($p, $s)");
registerColumnType(Types.DECIMAL, "decimal");
registerColumnType(Types.CHAR, "char");
registerColumnType(Types.VARCHAR, "varchar($l)");
registerColumnType(Types.LONGVARCHAR, "longvarchar");
registerColumnType(Types.DATE, "date");
registerColumnType(Types.TIME, "time");
registerColumnType(Types.TIMESTAMP, "datetime");
registerColumnType(Types.BINARY, "blob");
registerColumnType(Types.VARBINARY, "blob");
registerColumnType(Types.LONGVARBINARY, "blob");
registerColumnType(Types.BLOB, "blob");
registerColumnType(Types.CLOB, "clob");
registerColumnType(Types.BOOLEAN, "boolean");
//registerFunction( "abs", new StandardSQLFunction("abs") );
registerFunction( "concat", new VarArgsSQLFunction(StandardBasicTypes.STRING, "", "||", "") );
//registerFunction( "length", new StandardSQLFunction("length", StandardBasicTypes.LONG) );
//registerFunction( "lower", new StandardSQLFunction("lower") );
registerFunction( "mod", new SQLFunctionTemplate(StandardBasicTypes.INTEGER, "?1 % ?2" ) );
registerFunction( "quote", new StandardSQLFunction("quote", StandardBasicTypes.STRING) );
registerFunction( "random", new NoArgSQLFunction("random", StandardBasicTypes.INTEGER) );
registerFunction( "round", new StandardSQLFunction("round") );
registerFunction( "substr", new StandardSQLFunction("substr", StandardBasicTypes.STRING) );
registerFunction( "substring", new SQLFunctionTemplate( StandardBasicTypes.STRING, "substr(?1, ?2, ?3)" ) );
registerFunction( "trim", new AbstractAnsiTrimEmulationFunction() {
protected SQLFunction resolveBothSpaceTrimFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "trim(?1)");
}
protected SQLFunction resolveBothSpaceTrimFromFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "trim(?2)");
}
protected SQLFunction resolveLeadingSpaceTrimFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "ltrim(?1)");
}
protected SQLFunction resolveTrailingSpaceTrimFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "rtrim(?1)");
}
protected SQLFunction resolveBothTrimFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "trim(?1, ?2)");
}
protected SQLFunction resolveLeadingTrimFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "ltrim(?1, ?2)");
}
protected SQLFunction resolveTrailingTrimFunction() {
return new SQLFunctionTemplate(StandardBasicTypes.STRING, "rtrim(?1, ?2)");
}
} );
//registerFunction( "upper", new StandardSQLFunction("upper") );
}
public boolean supportsIdentityColumns() {
return true;
}
/*
public boolean supportsInsertSelectIdentity() {
return true; // As specify in NHibernate dialect
}
*/
public boolean hasDataTypeInIdentityColumn() {
return false; // As specify in NHibernate dialect
}
/*
public String appendIdentitySelectToInsert(String insertString) {
return new StringBuffer(insertString.length()+30). // As specify in NHibernate dialect
append(insertString).
append("; ").append(getIdentitySelectString()).
toString();
}
*/
public String getIdentityColumnString() {
// return "integer primary key autoincrement";
return "integer";
}
public String getIdentitySelectString() {
return "select last_insert_rowid()";
}
public boolean supportsLimit() {
return true;
}
public boolean bindLimitParametersInReverseOrder() {
return true;
}
protected String getLimitString(String query, boolean hasOffset) {
return new StringBuffer(query.length()+20).
append(query).
append(hasOffset ? " limit ? offset ?" : " limit ?").
toString();
}
public boolean supportsTemporaryTables() {
return true;
}
public String getCreateTemporaryTableString() {
return "create temporary table if not exists";
}
public boolean dropTemporaryTableAfterUse() {
return true; // TODO Validate
}
public boolean supportsCurrentTimestampSelection() {
return true;
}
public boolean isCurrentTimestampSelectStringCallable() {
return false;
}
public String getCurrentTimestampSelectString() {
return "select current_timestamp";
}
public boolean supportsUnionAll() {
return true;
}
public boolean hasAlterTable() {
return false; // As specify in NHibernate dialect
}
public boolean dropConstraints() {
return false;
}
/*
public String getAddColumnString() {
return "add column";
}
*/
public String getForUpdateString() {
return "";
}
public boolean supportsOuterJoinForUpdate() {
return false;
}
public String getDropForeignKeyString() {
throw new UnsupportedOperationException("No drop foreign key syntax supported by SQLiteDialect");
}
public String getAddForeignKeyConstraintString(String constraintName,
String[] foreignKey, String referencedTable, String[] primaryKey,
boolean referencesPrimaryKey) {
throw new UnsupportedOperationException("No add foreign key syntax supported by SQLiteDialect");
}
public String getAddPrimaryKeyConstraintString(String constraintName) {
throw new UnsupportedOperationException("No add primary key syntax supported by SQLiteDialect");
}
public boolean supportsIfExistsBeforeTableName() {
return true;
}
public boolean supportsCascadeDelete() {
return true;
}
/* not case insensitive for unicode characters by default (ICU extension needed)
public boolean supportsCaseInsensitiveLike() {
return true;
}
*/
public boolean supportsTupleDistinctCounts() {
return false;
}
public String getSelectGUIDString() {
return "select hex(randomblob(16))";
}
}
+29
View File
@@ -0,0 +1,29 @@
## Debug Settings
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.use_sql_comments=true
hibernate.connection.driver_class=org.sqlite.JDBC
hibernate.connection.url=jdbc\:sqlite\:default.sqlite
## Database Creation Mode (validate | update | create | create-drop)
hibernate.hbm2ddl.auto=validate
hibernate.dialect=perftoolutils.SQLiteDialect
teneo.naming.join_column_naming_strategy=simple
## Teneo Settings
teneo.mapping.disable_econtainer=true
teneo.mapping.always_version=false
teneo.mapping.inheritance=JOINED
teneo.naming.sql_fk_name_prefix=fk_
teneo.naming.set_foreign_key_name=true
hibernate.jdbc.batch_size=30
## Teneo Cache Settings
#hibernate.cache.use_second_level_cache=false
#hibernate.cache.use_query_cache=false
#teneo.mapping.default_cache_strategy=NONE
#hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory