Skip to main content

Table 2 Mapping rules of model operation transformation

From: Architecture-based integrated management of diverse cloud resources

 

One-to-one

Many-to-one

One-to-many

Mapping rule

Mapping rule

Mapping rule

Example

A -> B

A -> B

A -> B or C

A1.a1 -> B1.b1

A1.a1 -> B1.b1

A1.a1 -> B1.b1

C1.c1 -> B1.b2

A2.a1 -> C1.c1

Get

Get A1.a1 -> Get B1.b1

Get A1.a1 -> Get B1.b1

Get A1.a1 -> Get B1.b1

Get C1.c1 -> Get B1.b2

Get A2.a1 -> Get C1.c1

Set

Set A1.a1 -> Set B1.b1

Set A1.a1 -> Set B1.b1

Set A1.a1 -> Set B1.b1

Set C1.c1 -> Set B1.b2

Set A2.a1 -> Set C1.c1

List

List*A -> List*B

List*A -> List*B

List*A -> List*B and List*C

Get A.properties -> Get B.properties

Get A.properties -> Get B.properties

Get A.properties -> Get B.properties or Get C.properties

Add

Add*A -> Add*B

Add*A -> Add*B

Add*A -> Add*B or Add*C

Set A.properties -> Set B.properties

Set A.properties -> Get C.properties and Set B.properties

Set A.properties -> Set B.properties or Set C.properties

Remove

Remove*A -> Remove*B

Remove*A -> Remove*B

Remove*A -> Remove*B or Remove*C