logo-header

 
 

definition:

MaxClaims is the ninth argument of the discrete_alloc function. This argument needs to refer to a container with as subitems attributes for each land use type. These attributes define the maximal amount of land units that need to be allocated for the land use type per region. The values unit for these attributes is the number of land units. The domain units of these attributes are the domain units of the regions for which the claims are available.

applies:

The values unit of the each MaxClaim attribute with value type:

  • uint32

conditions:

The names of the MaxClaims attributes need to match with the values of the TypeNames argument.

since version:

5.15

example:

container region
{
unit<uint8> p1: nrofrows = 1;
unit<uint8> p2: nrofrows = 2;
}
container claim_source
{
unit<float32> Meter := BaseUnit('m', float32);
unit<float32> Ha := 10000.0 * Meter * Meter;
parameter<float32> nrHaPerCel := 1[claim_sources/Ha];

container p1
{
attribute<Ha> Nature_max (region/p1): [20];
attribute<Ha> Living_max (region/p1): [9];
}
container p2
{
attribute<Ha> Working_max (regionMaps/p2): [10,4];
}
}
container claims_max: Using = "claim_source"
{
attribute<uint32> Living (region/p1) :=
uint32(p1/Living_max  / nrHaPerCel);
attribute<uint32> Working(region/p2) :=
uint32(p2/Working_max / nrHaPerCel);
attribute<uint32> Nature (region/p1) :=
uint32(p1/Nature_max  / nrHaPerCel);
}

OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904