logging connection start time

This commit is contained in:
fros4943 2009-04-01 23:33:05 +00:00
parent 3b3580e439
commit e3bf2b58a6

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: RadioConnection.java,v 1.7 2009/03/03 13:42:45 fros4943 Exp $
* $Id: RadioConnection.java,v 1.8 2009/04/01 23:33:05 fros4943 Exp $
*/
package se.sics.cooja;
@ -52,6 +52,8 @@ public class RadioConnection {
private Vector<Radio> interfered = new Vector<Radio>();
private long startTime;
/**
* Creates a new radio connection with given source and no destinations.
*
@ -60,6 +62,11 @@ public class RadioConnection {
*/
public RadioConnection(Radio sourceRadio) {
this.source = sourceRadio;
startTime = sourceRadio.getMote().getSimulation().getSimulationTime();
}
public long getStartTime() {
return startTime;
}
/**