[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model/bridge Sensor.java, 1.2, 1.3 Mote.j
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2009-02-17 10:50:30
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/bridge In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2910/src/net/sourceforge/bprocessor/model/bridge Modified Files: Sensor.java Mote.java Log Message: Index: Sensor.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/bridge/Sensor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Sensor.java 4 Feb 2009 15:09:52 -0000 1.2 --- Sensor.java 17 Feb 2009 10:50:22 -0000 1.3 *************** *** 67,70 **** --- 67,71 ---- */ public void update() { + System.out.println("update sensors"); for (Mote current : motes) { long id = current.id(); *************** *** 72,75 **** --- 73,77 ---- DataItem item = Project.latest((int)id); if (item != null) { + System.out.println(" addinng " + item); current.add(item); } Index: Mote.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/bridge/Mote.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Mote.java 4 Feb 2009 15:09:52 -0000 1.2 --- Mote.java 17 Feb 2009 10:50:22 -0000 1.3 *************** *** 60,64 **** --- 60,66 ---- */ public void add(DataItem item) { + System.out.println(" " + item.timestamp() + " | " + lasttime); if (item.timestamp() > lasttime) { + System.out.println(" appending"); items.add(item); lasttime = item.timestamp(); |