Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bbc789da825d767f13737d8d835b8c7e762066dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[comment encoding = UTF-8 /]
[comment]
/*****************************************************************************
 * Copyright (c) 2013 PROTEUS Project consortium.
 *
 *    
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Sebastien BONNET (EFFIDENCE) - Initial API and implementation 
 *  Nicolas DU LAC (INTEMPORA) - Additional methods. 
 *
 *****************************************************************************/
[/comment]
[module DeploymentQueries('http://www.eclipse.org/uml2/5.0.0/UML', 'http://Papyrus/RobotML/1')]

[comment] 
These functions are implemented in file DeploymentQueries.java.
[/comment]
[query public getInstanceSpecifications(elt : Model) : Sequence(InstanceSpecification) =
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getInstanceSpecificationsInModel(org.eclipse.uml2.uml.Model)', Sequence{elt})
/]
[query public getInstanceSpecificationsForPlatform(elt : Model, pfn: String) : Sequence(InstanceSpecification) = 
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getInstanceSpecificationsForPlatform(org.eclipse.uml2.uml.Model, java.lang.String)', Sequence{elt, pfn})
/]
[query public getInstanceSpecificationsForPlatform2(model : Model, pfmName : String) : Sequence(InstanceSpecification)
	= invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getInstanceSpecificationsForPlatform2(org.eclipse.uml2.uml.Model, java.lang.String)', Sequence{model, pfmName}) 
/]
[query public getParentName(inst : InstanceSpecification) : String =
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getParentName(org.eclipse.uml2.uml.InstanceSpecification)', Sequence{inst})
/]
[query public getInstance(elt : Model, inst : InstanceSpecification) : Property =
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getInstance(org.eclipse.uml2.uml.Model,org.eclipse.uml2.uml.InstanceSpecification)', Sequence{elt, inst})
/]
[query public isAllocatedTo(inst : InstanceSpecification, pfn: String) : Boolean =
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'isAllocatedTo(org.eclipse.uml2.uml.InstanceSpecification,java.lang.String)', Sequence{inst, pfn})
/]
[query public getAllocationName(inst : InstanceSpecification) : String =
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getAllocationName(org.eclipse.uml2.uml.InstanceSpecification)', Sequence{inst})
/]
[query public getDefinedComponentsForPlatform(elt : Model, pfn: String) : Sequence(Class) = 
	invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getDefinedComponentsForPlatform(org.eclipse.uml2.uml.Model, java.lang.String)', Sequence{elt, pfn})
/]
[query public getDefinedComponentsForPlatform2(model : Model, pfmName : String) : Sequence(Class)
	= invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getDefinedComponentsForPlatform2(org.eclipse.uml2.uml.Model, java.lang.String)', Sequence{model, pfmName}) 
/]
[query public getDeploymentPlansInModel(model : Model) : Sequence(DeploymentPlan)
	= invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getDeploymentPlansInModel(org.eclipse.uml2.uml.Model)', Sequence{model}) 
/]
[query public getDeploymentPlanPackagesInModel(model : Model) : Sequence(Package)
	= invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getDeploymentPlanPackagesInModel(org.eclipse.uml2.uml.Model)', Sequence{model}) 
/]
[query public getDeploymentPlanInstanceSpecsForPlatform(deploymentPlan : Package, pfmName : String) : Sequence(InstanceSpecification)
	= invoke('org.eclipse.papyrus.robotml.generators.common.mmqueries.DeploymentQueries', 'getDeploymentPlanInstanceSpecsForPlatform(org.eclipse.uml2.uml.Package, java.lang.String)', Sequence{deploymentPlan, pfmName}) 
/]

Back to the top