Escolar Documentos
Profissional Documentos
Cultura Documentos
ZHOU ZHOU
02 Apr 2010
Performance
Simulation of swapping luggage
Basic idea:
Two passengers with their own luggage moving towards to the clean cupboard after the security
screening area. Luggage get swapped in the clean cupboard area. An alert will be generated for
the event of swapping.
Implementation:
Randomly get 2 passenger Ids, use 2 static variable to store the ids.
Use the same way to get another passenger ID randomly and stored into another static variable.
These 2 passengers with their own luggage are moving towards to the clean cupboard after
they've passed the security screening area. Here, I wrote a method named startSwapSimulation to
generate location for the randomly picked passengers.
currentP_id=passengerList.get(i);
if(currentP_id.equals(PID_1))
{
this.startSwapBagSimulation(currentP_id);
}
Each passenger takes 2 luggage, one or both of the luggage will get swapped with the luggage of
the other passenger. In order to separate the luggage of different passengers, the whole swapping
procedure will be highlighted by using balloon or colors or shapes.
To Do List