cjsolomon / Mulit-Modal

SRU Multi-Modal Project
0 stars 2 forks source link

Question about Segment.onBoard #25

Closed ghost closed 10 years ago

ghost commented 10 years ago

The segment class has an ArrayList attribute named onBoard. I don't see a function to addShipments in segments. Are they added somewhere else or am I just missing the functionality within segment?

JordanSchiller1064 commented 10 years ago

onBoard is loaded from the Shipment.LoadAllForSegment and it used to be loaded when a Shipment was loaded from the database but I commented it out because it was too slow and gave use too much information when we could just call for the above function later when the data was actually needed. So if you want to know what should be onBoard then call Shipment.LoadAllForSegment