I am trying to use SimEvents to simulate a roundtrip shipping transport system. "Harbour(load cargo)->Sail->Destination(offload cargo)->Sail->Harbour(load cargo)"
In harbor, each entity (ship) receives varying amounts of cargo in form of attribute values. When the ship reaches its destination, it will offload the cargo (given attribute value) to a tank. By using the "attribute scope" block, it is possible to plot the attribute(cargo) versus time.
However, I am interested in looking at the total amount of cargo delivered at a specific time. As a result, I can monitor the total amount of cargo in the tank at a given time (cumulative value of offloaded cargo).
Could someone please let me know how to do this? Suggestion of relevant sample models will also be much appreciated. Thanks :)