| <?xml version="1.0" encoding="UTF-8"?> |
| <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model" nsURI="http://eclipse.org/skills/1.0.0" nsPrefix="skills"> |
| <eClassifiers xsi:type="ecore:EClass" name="Task"> |
| <eOperations name="isAvailable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> |
| <eOperations name="getShortTitle" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> |
| <eParameters name="maxLength" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> |
| </eOperations> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="description" lowerBound="1" |
| eType="#//Description" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="goal" lowerBound="1" eType="#//Dependency" |
| containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="rewards" upperBound="-1" |
| eType="#//Reward" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="requirement" lowerBound="1" |
| eType="#//Dependency" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1" |
| eType="#//Task" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="hints" upperBound="-1" |
| eType="#//Hint" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="autoActivation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" |
| defaultValueLiteral="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Description"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" |
| defaultValueLiteral="<description>"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Reward" abstract="true" interface="true"> |
| <eOperations name="payOut"> |
| <eParameters name="user" eType="#//User"/> |
| </eOperations> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Badge"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="imageURL" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EDataType" name="Date" instanceClassName="java.util.Date"/> |
| <eClassifiers xsi:type="ecore:EClass" name="User"> |
| <eOperations name="startTask"> |
| <eParameters name="task" eType="#//Task"/> |
| </eOperations> |
| <eOperations name="getSkill" eType="#//Skill"> |
| <eParameters name="skill" eType="#//Skill"/> |
| </eOperations> |
| <eOperations name="consume"> |
| <eParameters name="reward" eType="#//Reward"/> |
| </eOperations> |
| <eOperations name="getAvatar" eType="#//ImageData"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="skills" upperBound="-1" |
| eType="#//Skill" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="usertasks" upperBound="-1" |
| eType="#//UserTask" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="imageLocation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="experience" lowerBound="1" |
| eType="#//Skill" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="badges" upperBound="-1" |
| eType="#//Badge" containment="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Skill"> |
| <eOperations name="addExperience"> |
| <eParameters name="amount" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> |
| </eOperations> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" |
| defaultValueLiteral="<unnamed>"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="description" lowerBound="1" |
| eType="#//Description" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="experience" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="xpLevelFactor" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble" |
| defaultValueLiteral="2.4"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="level" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" |
| changeable="false" volatile="true" transient="true" derived="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" lowerBound="1" eType="#//LevelNames" |
| changeable="false" volatile="true" transient="true" derived="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="UserTask"> |
| <eOperations name="isCompleted" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> |
| <eOperations name="start"/> |
| <eOperations name="getUser" eType="#//User"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="task" lowerBound="1" eType="#//Task" |
| containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="started" eType="#//Date"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="finished" eType="#//Date"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="hintsDisplayed" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Quest"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1" |
| eType="#//Task" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="skills" upperBound="-1" |
| eType="#//Skill" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Dependency" abstract="true"> |
| <eOperations name="activate"/> |
| <eOperations name="deactivate"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="fulfilled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" |
| transient="true" defaultValueLiteral="false"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="BadgeReward" eSuperTypes="#//Reward"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="badge" lowerBound="1" eType="#//Badge" |
| containment="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="ExperienceReward" eSuperTypes="#//Reward"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="experience" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="SkillReward" eSuperTypes="#//ExperienceReward"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="skill" lowerBound="1" eType="#//Skill"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="ContainedDependency" abstract="true" |
| eSuperTypes="#//Dependency"> |
| <eOperations name="evaluateDependencies"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="dependencies" upperBound="-1" |
| eType="#//Dependency" containment="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="AndDependency" eSuperTypes="#//ContainedDependency"/> |
| <eClassifiers xsi:type="ecore:EClass" name="OrDependency" eSuperTypes="#//ContainedDependency"/> |
| <eClassifiers xsi:type="ecore:EClass" name="NotDependency" eSuperTypes="#//ContainedDependency"/> |
| <eClassifiers xsi:type="ecore:EClass" name="DelayedDependency" eSuperTypes="#//ContainedDependency"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="delay" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="CustomDependency" eSuperTypes="#//Dependency"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="extensionId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="extensionAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="dependency" eType="#//Dependency" |
| changeable="false" transient="true" derived="true" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="definition" eType="#//CustomDependencyDefinition" |
| transient="true" derived="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="DependencyWithAttributes" abstract="true" |
| interface="true" eSuperTypes="#//Dependency"> |
| <eOperations name="setAttributes"> |
| <eParameters name="attributes" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| </eOperations> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="SequenceDependency" eSuperTypes="#//AndDependency"/> |
| <eClassifiers xsi:type="ecore:EClass" name="CompleteIncludedTasksDependency" eSuperTypes="#//Dependency"/> |
| <eClassifiers xsi:type="ecore:EClass" name="TaskDependency" eSuperTypes="#//Dependency"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="task" lowerBound="1" eType="#//Task"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="completed" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" |
| defaultValueLiteral="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="SkillDependency" eSuperTypes="#//Dependency"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="minExperience" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" |
| defaultValueLiteral="0"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="minLevel" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" |
| defaultValueLiteral="0"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="skill" lowerBound="1" eType="#//Skill"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Hint" eSuperTypes="#//Description"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="penalty" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" |
| defaultValueLiteral="10"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EEnum" name="LevelNames"> |
| <eLiterals name="APPRENTICE" value="1" literal="Apprentice"/> |
| <eLiterals name="EXPERT" value="2" literal="Expert"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EDataType" name="CustomDependencyDefinition" instanceClassName="org.eclipse.skills.dependencies.CustomDependencyDefinition"/> |
| <eClassifiers xsi:type="ecore:EDataType" name="ImageData" instanceClassName="org.eclipse.swt.graphics.ImageData"/> |
| </ecore:EPackage> |