Sha256: 07ac858f8ba2905c55e2c46025fb9196793894ffd91a975ac8bc99bc13ea3c36

Contents?: true

Size: 1.71 KB

Versions: 5

Compression:

Stored size: 1.71 KB

Contents

vocabulary OilSupply;

/*
 * Value Types
 */
Cost is written as Money;
Month Nr is written as Signed Integer(32);
Product Name is written as String;
Quantity is written as Unsigned Integer(32);
Refinery Name is written as String(80);
Region Name is written as String;
Season is written as String(6) restricted to {'Autumn', 'Spring', 'Summer', 'Winter'};
Transport Method is written as String restricted to {'Rail', 'Road', 'Sea'};
Year Nr is written as Signed Integer(32);

/*
 * Entity Types
 */
Month [static] is identified by its Nr restricted to {1..12};
Month is in one Season;

Product is independent identified by its Name;

Refinery is independent identified by its Name;

Region is independent identified by its Name;

Transport Route is where
	Transport Method transportation is available from Refinery to Region,
	Transport Method transportation is available to Region from Refinery;
Transport Route incurs at most one Cost per kl;

Year is identified by its Nr;

Acceptable Substitution is where
	Product may be substituted by alternate-Product in Season [acyclic, intransitive],
	alternate-Product is an acceptable substitute for Product in Season;

Supply Period [separate, static] is identified by Year and Month where
	Supply Period is in one Year,
	Supply Period is in one Month;

Production Forecast is where
	Refinery in Supply Period will make Product in one Quantity,
	Refinery will make Product in Supply Period in Quantity,
	Refinery will make Quantity of Product in Supply Period;
Production Forecast predicts at most one Cost;

Regional Demand is where
	Region in Supply Period will need Product in one Quantity,
	Region will need Product in Supply Period in Quantity,
	Region will need Quantity of Product in Supply Period;

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
activefacts-examples-1.9.8 cql/OilSupply.cql
activefacts-examples-1.8.0 cql/OilSupply.cql
activefacts-examples-1.7.2 cql/OilSupply.cql
activefacts-examples-1.7.1 cql/OilSupply.cql
activefacts-1.6.0 examples/CQL/OilSupply.cql