For sure, my english is not the best of the world :p
Thanks for your patience.
As i have see, jscript allow to declare 6 dimensions by vehicle. A dimension is a number the vehicle can hold in one unit : ex : 1200 liter of water and 500kg of apple.
When a service is created, I can ask any number in any dimension : ex :
- Customer 1 want 500 liter of water
- Customer 2 want 100 kgs of apple.
-----------
In my case, my vehicle have from 1 to 6 tank. Each tank can carry any product but product can not be mixed. Ex:
Vehicle 1 :
- Tank 1 : 1200 liter of any product (dimension 1)
- Tank 2 : 500 liter of any product (dimension 2)
When a customer make an order, i can't specify a dimension, I only know than a customer want 300 liter of a product. The product can be delivered by vehicle 1 with first tank or with second tank, depend on other deliveries. The product is not tied to a dimension and can fit in any tank. So i can't express the order with this :
Service.Builder.newInstance("1").addSizeDimension(<dimension_index>, 300)
<dimension_index> is not known when services are created.
Hoping to have been more explicit.
Best regards.
Eric.