evolution
Sequence Diagram squareOfLandEvolve

Note Summary
Note1 
Note2 
Note3 
 

Object Summary
<unnamed> 
<unnamed> 
landResource 
m 
 

Diagram Elements Detail

Note1

text Evolve a square of land. Certain land resources evolve during time, like babytrees who transform to a forest.

Note2

text If a land resource is fully transformed (e.g. the babytrees are all trees now) the land of this square will change.

Note3

text The method transformsLandResources returns a map with as key the name of the initial land resource and as value an array with as first element the name of the land resource it transforms into and as second element a Double transfor- mationvalue.

Activation Summary
Activation1 
Activation5 
Activation7 
Activation8 
 

Dependency Links

to Class evolution.lands.SquareOfLand

Message Links

to Object

Name
Number 1
Operation evolve

to Object

Number 1.1
Operation transformationSpeed
Arguments getLandType()
Return speed

to Object

Number 1.2
Operation transformsLandResources
Arguments getLandType()
Return m

to Object m

Name [for each] pair(String from, (String to, Double v)) := next()
Number 1.3

to Object

Number 1.4
Operation setLandType
Arguments LandKnowledgeCatalog.getInst().transformsTo(getLandType())
Condition getLandResource(from).isBoundary()

Note Links

to Note Note1

to Note Note2


Activation1

Activation5

Activation7

Activation8

Stereotype singleton
Activation Summary
Activation2 
Activation3 
 

Dependency Links

to Class evolution.lands.LandKnowledgeCatalog

Note Links

to Note Note3


Activation2

Activation3

landResource
Activation Summary
Activation6 
 

Dependency Links

to Class evolution.lands.LandResource


Activation6

m
Activation Summary
Activation4 
 

Dependency Links

to Class java.util.Map

Message Links

to Object landResource

Number 1.3.1
Operation extract
Arguments speed * v.doubleValue()
Return value

to Object

Name
Number 1.3.2
Operation getLandResource
Arguments from
Return landResource

to Object

Number 1.3.3
Operation modResource
Arguments to, value

Activation4

a gvijf production