High-level system design Measure Materials present in the Air and send this data to the DataRecorder at specific intervals of time.
High-level system design Records incoming data from the sensors into a DB
High-level system design Sensor Location Management component. It maintains sensor location coordinates.
High-level system design Listens to PHS client requests and generates an XML file containing sensor readings for the requested Region and within the requested Timeframe.
High-level system design Generates KML files for the snapshot of the entire system at the requested Timestamp.
High-level system design Acts as the communication medium, allowing asynchronous communication and Loose Coupling.
Deployment Config.java Stores the various configuration parameters which must be set before compiling and deploying. Paths: HOMELOCATION it’s the root of the project location. E.g. if the project name is Project1-Ants and the path of this folder is /Users/shivanshu/LearningSpace/Project1-Ants then HOMELOCATION=“/Users/shivanshu/LearningSpace/Project1-Ants” KML Templates: For use by CCCListener to generate kml files. Store kml template file for each highway at HOMELOCATION/Templates/KML-files Initialization: Run hems.ant.simulation.SensorConfiguration.java Stores the coordinates of sensors in the databse. Jboss: The system supports Jboss 5.1.0 and can be configured for JBoss4.2.3
Sensors Two types: CSU – measuring CO2, CO, NO and SO2 ASU – measuring Particulate matter Frequency: Each sensor will send data, which for reasons of modeling the actual system, will be generated in terms of 5 messages per sensor per 0.5 hour. interval of ½ hour is towards giving the server enough time to process requests and persist the data so that an increasing backlog of messages waiting to be processed is not created. can be adjusted accordingly by changing a property in the hems.ant.component.common.Config.java file. Data Packet: TextMessage; format: SensorId,Material,Value,Timestamp System does not verify materialType in the system for flexibility of adding sensors and capabilities of measuring other materials to the sensors and aid adaptability to such changes. SensorId: hhhs-<sensornumber> (case sensitive) sensor sensor sensor sensor
Components SCRecorder Main sensor location management component. reads the sensor/location queue for sensor location information TextMessage; format: sensorId,Longitude,Latitude,Altitude Enables the system to be updates on runtime for changes in sensor location.
Components DataRecorder Records incoming data from the sensor Assumes that the data generation is being done at a set interval of time by all the sensors Timestamp for an instance of data generation will be the same for all the sensors. This is possible if the sensors synchronize their time with a central time sync service. Interval can be set through the SENSORINTERVALMINUTESvariablehems.ant.component.common.Config.java file.
Components DataRecorder Checks for Threshold Values. Robust against malformed messages.
Components PHSListener Responds to requests (which have to be put into phs/request JMS Queue by the client) Generates XML containing sensor readings for sensors in the given timeframe and region Location: HOMELOCATION/PHS-files/PHS-yyyy-mm-dd-hh-mm-ss.xml Format:<phs_data> <entry>sensorId,materialType,value,timestamp</entry> …. </phs_data>
Components CCCListener Responds to requests (which have to be put intoccc/request JMS Queue by the client) Generates KML for each highway for the snapshot of the system at the requested timestamp. Location: HOMELOCATION/CCC-files/highwayname-yyyy-mm-dd-hh-mm-ss.kml Threshold Values Shows if a certain value goes below or above threshold.
Components CCCListener Crosses Threshold Within Threshold
Future Work PHS & CCC: Asking the client to specify the file location with the desired filename or actually transfer it to the client. CCC: Currently only 101, 680 and 880 Future work may include generation of KML files for all the highways for which initial kml files are provided, making it a generic tool. DB tuning / alternate persistence and archiving strategies Clustering Web Client for Sensor Location Management
Q ? Thank You Team Name: AntsShivanshu Singh 006488300Dhaval Patel 006500481