NPTLab
Class Trace

java.lang.Object
  extended by NPTLab.Trace

public class Trace
extends java.lang.Object

Class that saves the traces of a user containing laction, day and duration of the visit

Author:
Andrea Campanella, NPTLab, Public university of Milan, 2014

Constructor Summary
Trace(CoordSetUser csu, int simulationDays)
          Creates a trace for a node based on his Set of locations and the nuber of simulation days
 
Method Summary
 java.util.Map<java.lang.Integer,java.lang.Integer> returnCombinationMap()
          Returns the map with column ad key and id as value
 java.util.Map<java.lang.Integer,java.lang.Integer> returnInverseCombinationMap()
          Returns the map with idCoord as key and column as value
 cern.colt.matrix.DoubleMatrix2D returnTrace()
          Returns the Trace for the node
 java.lang.String toString()
          Method for printing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Trace

public Trace(CoordSetUser csu,
             int simulationDays)
Creates a trace for a node based on his Set of locations and the nuber of simulation days

Parameters:
csu - The CoordSetUser element for the node,
simulationDays - The number os simylation days the node had created thei traces for
Method Detail

returnTrace

public cern.colt.matrix.DoubleMatrix2D returnTrace()
Returns the Trace for the node

Returns:
cern.colt.lang.DoubleMatrix2D

returnCombinationMap

public java.util.Map<java.lang.Integer,java.lang.Integer> returnCombinationMap()
Returns the map with column ad key and id as value

Returns:
Map

returnInverseCombinationMap

public java.util.Map<java.lang.Integer,java.lang.Integer> returnInverseCombinationMap()
Returns the map with idCoord as key and column as value

Returns:
Map

toString

public java.lang.String toString()
Method for printing

Overrides:
toString in class java.lang.Object
Returns:
string