Commit cad1986b authored by Kyriakos Kritikos's avatar Kyriakos Kritikos

Modifications to importer code

parent 2dbe3fa0
<?xml version="1.0" encoding="ASCII"?>
<camel:CamelModel
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://www.paasage.eu/camel"
xmlns:provider="http://www.paasage.eu/camel/provider"
xmlns:type="http://www.paasage.eu/camel/type"
xsi:schemaLocation="http://www.paasage.eu/camel camel.ecore http://www.paasage.eu/camel/provider camel.ecore#//provider http://www.paasage.eu/camel/type camel.ecore#//type"
name="Flexiant Camel Model">
<locationModels
name="Flexiant Location">
<countries
id="UK"
name="United Kingdom"/>
</locationModels>
<organisationModels
name="Flexiant Organisation Model">
<provider
name="Flexiant"
www="www.flexiant.com"
postalAddress="Flexiant Limited, Geddes House, Kirkton North, Livingston, EH54 6GU, UK"
email="contact@flexiant.com"
public="true"
PaaS="true"
IaaS="true"
providerModel="//@providerModels.0"/>
<dataCentres
name="Flexiant Data Centre"
codeName="flexiant"
location="//@locationModels.0/@countries.0"
cloudProvider="//@organisationModels.0/@provider"/>
</organisationModels>
<providerModels
name="Flexiant Provider Model">
<constraints
xsi:type="provider:Implies"
name="LOWEST_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="LOWEST"/>
<toValue
xsi:type="type:IntValue"
value="512"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="LOWEST"/>
<toValue
xsi:type="type:IntValue"
value="1"/>
</attributeConstraints>
</constraints>
<constraints
xsi:type="provider:Implies"
name="LOWER_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="LOWER"/>
<toValue
xsi:type="type:IntValue"
value="1024"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="LOWER"/>
<toValue
xsi:type="type:IntValue"
value="1"/>
</attributeConstraints>
</constraints>
<constraints
xsi:type="provider:Implies"
name="LOW_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="LOW"/>
<toValue
xsi:type="type:IntValue"
value="2048"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="LOW"/>
<toValue
xsi:type="type:IntValue"
value="1"/>
</attributeConstraints>
</constraints>
<constraints
xsi:type="provider:Implies"
name="MEDIUM_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="MEDIUM"/>
<toValue
xsi:type="type:IntValue"
value="2048"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="MEDIUM"/>
<toValue
xsi:type="type:IntValue"
value="2"/>
</attributeConstraints>
</constraints>
<constraints
xsi:type="provider:Implies"
name="HIGH_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="HIGH"/>
<toValue
xsi:type="type:IntValue"
value="4096"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="HIGH"/>
<toValue
xsi:type="type:IntValue"
value="2"/>
</attributeConstraints>
</constraints>
<constraints
xsi:type="provider:Implies"
name="HIGHER_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="HIGHER"/>
<toValue
xsi:type="type:IntValue"
value="4096"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="HIGHER"/>
<toValue
xsi:type="type:IntValue"
value="3"/>
</attributeConstraints>
</constraints>
<constraints
xsi:type="provider:Implies"
name="HIGHEST_VM_Constraint_Mapping"
from="//@providerModels.0/@rootFeature"
to="//@providerModels.0/@rootFeature">
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.1">
<fromValue
xsi:type="type:StringValue"
value="HIGHEST"/>
<toValue
xsi:type="type:IntValue"
value="4096"/>
</attributeConstraints>
<attributeConstraints
from="//@providerModels.0/@rootFeature/@attributes.0"
to="//@providerModels.0/@rootFeature/@attributes.3">
<fromValue
xsi:type="type:StringValue"
value="HIGHEST"/>
<toValue
xsi:type="type:IntValue"
value="4"/>
</attributeConstraints>
</constraints>
<rootFeature
name="VM">
<attributes
name="vmType"
valueType="//@typeModels.0/@dataTypes.1"/>
<attributes
name="vmMemory"
valueType="//@typeModels.0/@dataTypes.2"/>
<attributes
name="vmStorage"
valueType="//@typeModels.0/@dataTypes.3"/>
<attributes
name="vmCores"
valueType="//@typeModels.0/@dataTypes.4"/>
<attributes
name="vmOS"
valueType="//@typeModels.0/@dataTypes.0"/>
<featureCardinality
cardinalityMin="1"
cardinalityMax="8"
value="1"/>
</rootFeature>
</providerModels>
<typeModels
name="FlexiantTypeModel">
<dataTypes
xsi:type="type:Enumeration"
name="VM_OS_ENUMERATION">
<values
name="CentOS 6.2"/>
<values
value="1"
name="Ubuntu 12.04"/>
<values
value="2"
name="Ubuntu 14.04"/>
<values
value="3"
name="Windows 2008 R2"/>
</dataTypes>
<dataTypes
xsi:type="type:Enumeration"
name="VM_TYPE_ENUMERATION">
<values
name="LOWEST"/>
<values
value="1"
name="LOWER"/>
<values
value="2"
name="LOW"/>
<values
value="3"
name="MEDIUM"/>
<values
value="4"
name="HIGH"/>
<values
value="5"
name="HIGHER"/>
<values
value="6"
name="HIGHEST"/>
</dataTypes>
<dataTypes
xsi:type="type:Range"
name="MemoryRange">
<lowerLimit
included="true">
<value
xsi:type="type:IntValue"
value="512"/>
</lowerLimit>
<upperLimit
included="true">
<value
xsi:type="type:IntValue"
value="4096"/>
</upperLimit>
</dataTypes>
<dataTypes
xsi:type="type:Range"
name="StorageRange">
<lowerLimit
included="true">
<value
xsi:type="type:IntValue"
value="1"/>
</lowerLimit>
<upperLimit
included="true">
<value
xsi:type="type:IntValue"
value="1000"/>
</upperLimit>
</dataTypes>
<dataTypes
xsi:type="type:Range"
name="CoresRange">
<lowerLimit
included="true">
<value
xsi:type="type:IntValue"
value="1"/>
</lowerLimit>
<upperLimit
included="true">
<value
xsi:type="type:IntValue"
value="4"/>
</upperLimit>
</dataTypes>
</typeModels>
</camel:CamelModel>
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment