Skip to content

Commit

Permalink
Fixed sample
Browse files Browse the repository at this point in the history
  • Loading branch information
dselman committed Jan 30, 2018
1 parent 2f50f7a commit 9026897
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"restructuredtext.confPath": "/Users/dselman/dev/cicero-template-library"
}
13 changes: 6 additions & 7 deletions perishable-goods/shipping-contract.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
On receipt of the shipment "SHIP_001" the importer "DAN" pays the grower "PETER" 1.50 USD per KG. The shipment must contain between 3000 and 3500 KG of "Grade I, Size 4, Zutano Mexican Avocados".

Shipping containers used must be temperature controlled, and temperature readings must be logged at least 1 per HOUR.
Shipping containers used must be temperature and humidity controlled, and sensor readings must be logged at least 1 per HOUR.

Shipments that arrive after 04/02/2018 are to be considered spoiled and must be arranged to be returned to or disposed of by grower at cost to grower.

Shipments that have a temperature reading less than the agreed minimum temperature of 2 degrees centigrade have a price penalty applied calculated using Formula 1 below. The minimum breach penalty factor to be used is 0.2.
Temperature readings for the shipment must be between -0 and 40.

Shipments that have a temperature reading greater than the agreed maximum temperature of 13 degrees centigrade have a price penalty applied calculated using Formula 2 below. The maximum breach penalty factor to be used is 0.15.
Humidity readings for the shipment must be between 60 and 90.

Formula 1: Maximum Temperature Breach Penalty:
penalty = number of shipment units x difference between maximum temperature and agreed maximum temperature x maximum breach penalty factor
Shipments that have a temperature or humidity reading outside the agreed range have a price penalty applied calculated using the Formula for Breach Penalty Calculation below. The breach penalty factor to be used is 0.2.

Formula 2: Minimum Temperature Breach Penalty:
penalty = number of shipment units x difference between minimum temperature and agreed minimum temperature x minimum breach penalty factor
Formula for Breach Penalty Calculation:
penalty = number of shipment units x difference between sensor reading and agreed range x breach penalty factor

0 comments on commit 9026897

Please sign in to comment.