|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNPTLab.CoordWrapper
NPTLab.CoordWrapperUserMap
public class CoordWrapperUserMap
Class that creates a map specific for the user for each location containing the time spent at each location in a given day.
Method Summary | |
---|---|
void |
addLocationDayTime(int Day,
java.lang.Double Time)
Adds a location and his time if it's not already contained, if is already in the map adds the time for that day |
static CoordWrapperUserMap |
createCoordWrapUserMap(CoordWrapper cwUser)
Creates a CoordWrapUserMap |
CoordWrapper |
getCw()
Returns the CoordWrapper for this instance of the map |
java.util.HashMap<java.lang.Integer,java.lang.Double> |
getMap()
Returns the Map |
void |
setCw(CoordWrapper cwCorrectId)
Sets the CoordWrapper |
java.lang.String |
toString()
Method for printing |
Methods inherited from class NPTLab.CoordWrapper |
---|
createCoordWrap, createDummyCoordWrap, getCoord, getID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CoordWrapperUserMap createCoordWrapUserMap(CoordWrapper cwUser)
cwUser
- Element of CoordWrapper class
public void addLocationDayTime(int Day, java.lang.Double Time)
Day
- the day the user visited a specific location, Time time spent in that locationTime
- the time spent at the given location that daypublic CoordWrapper getCw()
public java.util.HashMap<java.lang.Integer,java.lang.Double> getMap()
public void setCw(CoordWrapper cwCorrectId)
cwCorrectId
- CoordWrapper element with the correct IDpublic java.lang.String toString()
toString
in class CoordWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |