Cooperative car Parking source code

As mention on the main Website, the simulation tool is used to assess the proposed approaches in various circumstances. It consists of two platforms (SUMO and JADE), which are running in parallel. There are many java classes have been programmed to implement the proposed approaches functionalities in JADE environment. In this website, I will explore the source codes of the main implemented classes.

The running procedure started with the Main class that initiates Jade platform via creating the main container (under name OD Manager), create the TraSMAPI object, and run SUMO environment. Besides initiate the two platforms and make a connection between them, there is periodically call simulation step command from TraSMAPI to SUMO to keep the synchronization between the platforms.

OD-Manger job just initiates the DriverAgent, which supposed installed in the vehicle.

Driver Agent represents the main implemented class. In general speaking, it starts to send a request to create the corresponding vehicle in SUMO environment via SUMOCOM class, which act the core class of TraSMAPI model responsible for managing connection with SUMO. After that, the proposing vehicle strategies based on introducing approach are implemented. There are four implemented approaches of Driver Agent: CoPark-N-C-O, CoPark-WS, CoPark-WS with limited initial information accompanied with DDM mechanism, and CDO approaches.

In addition, in CoPark-WS determine the target searching area based on assessing the available areas via utility function.