Tuesday, April 27, 2010

Simulation Brainstorm

In addition to testing the code that we currently have. I am investigating the possible ways of improving the simulation of the power usage in a dorm. Currently we only have weekday vs. weekend and time of day as variables in generating a power usage value. Some other information that I could incorporate to make the data more realistic are:

- day of week (Sunday, Monday, etc.)
- day of year (holidays)
- temperature (use more air conditioning when it is hot)
- energy literacy
- number of students in floor/dorm
- individual floors
- multiple dorms

So far the ones that jump out to me as being useful to put into a simulation would be the day of week, day of year, and temperature. Hopefully adding these extra variables will allow us to test the our sensors and meters will very realistic data.

Tuesday, April 20, 2010

Code Cleanup

Since the milestone, we have had a lot of cleanup that we needed to do with our code. This included fixing things with checkstyle, pmd, and findbugs. Our code was not undergoing these checks until very late in the milestone so we haven't been keeping up with getting our code up to the level that it should be at. Now our code is much more readable and follows all the conventions. Being that our code is on Google Project Hosting, I feel much better about the code that is being presented to the public.

I have also implemented some tests for the simulation java files. We didn't have any testing before and I will continue to add more tests as we continue development. We ran into some bugs that took us a while to figure out. At that time testing was not implemented. Had some tests been written, it would have saved us a lot of time in making sure our code was doing what it was supposed to.

Tuesday, April 13, 2010

Dorm Energy Simulation Milestone

This week marks the end of the milestone for the Dorm Simulation Group. Joining a group already in progress has presented some difficulties. Alan and Edwin have already been working on this project for the entire semester so they had a good understanding of the system. Being that the interaction between all of the different parts between the meters and sensors and WattDepot is complicated, it took me a few times to actually figure out how all of the pieces fit together.

Working together to create this system has been just as complicated. We separated out the parts with Alan working on the meter simulation, Alan working on the sensors, and me and Bao working on the dorm simulation. The way we were working was we each worked on our own parts and then put them together. We ran into many issues with data types and multiple conversions required to make them work with the requirements of the libraries we were using. It didn't help that we only integrated svn in the final week of the project. This resulted in many checkstyle and pmd errors which needed to be fixed at the end.



The postponing of all of these essential software engineering practices has made it much more work in the last week of the project. It has been clear as to why these sytems should be in place in the very beginning and the benefits of doing so have become painfully clear while working on this project.

Tuesday, April 6, 2010

Effective Dorm Power Simulation Ideas

The idea of creating an effective simulation for power readings for an entire dorm is both interesting and a challenge. When this project was described it was something that I knew that I could become interested in. I began brainstorming ways in which a realistic simulation could be designed.

The obvious way was to create a large array which stored different data points based off of some research. This was is obviously undesirable since it is much less useful for testing. The next easiest way would be to get random variables between a pair of limits. This is actually being used right now for basic testing, but this still isn't a realistic simulation of a dorm's power usage.

The way that we have decided to go with is to store data of a average day for each day of the week, since the energy use can vary greatly depending on the day. Next, we would have a skew value, probably are 10%, which would be used to get a random value between the end points. This way seems to be a way which could produce realistic data which could be used to dependably test other code. After this is implemented, we will be able to tell if my hopes hold true and if we need to make adjustments to the algorithm.

Tuesday, March 30, 2010

Dorm Energy Simulator: Week 2

In order for a simulation for a dorm's power usage to be realistic, it is important to have a clear idea of what types of appliances a typical dorm room would have and the power that these devices use under different uses. The best way to create a realistic spreadsheet of usage data would be to find the periods where students are in their dorms and using the most energy. Then we could simulate "turning on" and "turning off" different devices which would give us data that would resemble what real power usage in a dorm would be like. Incorporating this knowledge with a realistic algorithm for energy use during different times of the day and different days of the week will give us good data which can be very useful to see if different projects are working correctly with reasonable information.

This is a wiki page which contains a chart of different devices and their power usage in standby, average load, max load, and when turned off. This page will be updated with new appliances and more data as it becomes available.



The wiki page can be reached by clicking here.

Tuesday, March 16, 2010

Dorm Energy Simulator: Week 1

This is the first week in the 3rd milestone. I am now working in the team which will create a program to simulate data for energy usage in the dorms. The simulation will be able to produce data depending which devices are used by the residents at different times during the day.

One very important thing that we needed to get cleared out of the way was the terms that we would need to use during our development of this project. These terms include power (the present flow of watts), energy (power over time), and demand (average rate of energy use over time). This is very important as we proceed so that we have a consistent understanding and implementation throughout our program.

We have not met yet to discuss how we will break up the work, but I will be doing research into the devices that would typically be found in a dorm room and finding the energy use while they are on/off. I will also be looking into their current program which sends data.

Tuesday, March 9, 2010

Kukui Cup Competition Design: Milestone 2

For this second milestone, we change our method to focusing on a different time period each week. This allowed us to place our minds in a certain mindset so we could make choices in our design that would more closely match those of the users. We used the first week to do the mockups for the period before the competition, the second week for the period right after the competition started, the third week for billboard pages, and the last week to fix up our older mockups and give them a consistent look.

This week i changed up my previous mockups to make them look consistent with the other pages for the site. I also created the wiki for all of the billboard mockups.



This is the basic help page with competition information and contact info.



This is the billboard page before the competition begins. It gives what a student would probably like to know about the competition like the prizes and how the winners are determined.




These are a couple pages which will be displayed when the competition is going on. The idea is to give the students quick and easy ways for them to improve their energy usage.