|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.statistics.model.Visit
public class Visit
Represents a visit which basically consists of a number of page impressions,
namely PIRecords.
| Constructor Summary | |
|---|---|
Visit(PIRecord piRecord, TimeSpan sessionInterval, TimeSpan lastRecordAssumedTime)
Creates a new Visit with the given PIRecord as
the first page impression. |
|
| Method Summary | |
|---|---|
boolean |
add(PIRecord piRecord)
Adds the given PIRecord provided it belongs to the
Visit. |
Duration |
getFirstFullDay()
Returns the fullDays of the underlying PIRecords. |
PIRecord |
getFirstRecord()
Returns the first PIRecord of the Visit. |
java.util.Set<Duration> |
getFullDays()
Returns the fullDays of the underlying PIRecords. |
PIRecord |
getLastRecord()
Returns the last PIRecord of the Visit. |
java.util.Set<PIRecord> |
getPiRecords()
Returns the PIRecords of the Visit. |
java.util.Set<PIRecord> |
getPiRecords(Duration duration)
Returns all the PIRecords for the given
Duration. |
TimeSpan |
getTimeSpan(boolean withAssumedTimeForLastPageImpression)
Returns the actual TimeSpan of the Visit - from
first to last PIRecord. |
boolean |
isBounce()
Returns whether the Visit is a "bounce" - meaning it
contains only one PIRecord. |
java.lang.String |
toString()
Returns a string-representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Visit(PIRecord piRecord, TimeSpan sessionInterval, TimeSpan lastRecordAssumedTime)
Visit with the given PIRecord as
the first page impression.
piRecord - the PIRecordsessionInterval - the maximum time between two page impressions in one session
without a recurring session-idlastRecordAssumedTime - a time span specifying the assumed time for the
Visits last page-impresssion.
java.lang.NullPointerException - if the record is null| Method Detail |
|---|
public final boolean add(PIRecord piRecord)
PIRecord provided it belongs to the
Visit.
piRecord - the PIRecord to add
true, if and only if the record has been added.
Otherwise false.
java.lang.NullPointerException - if the record is nullpublic final java.util.Set<PIRecord> getPiRecords()
PIRecords of the Visit.
public final java.util.Set<PIRecord> getPiRecords(Duration duration)
PIRecords for the given
Duration.
duration - the Duration
public final PIRecord getLastRecord()
PIRecord of the Visit.
public final PIRecord getFirstRecord()
PIRecord of the Visit.
public final java.util.Set<Duration> getFullDays()
PIRecords.
public final Duration getFirstFullDay()
PIRecords.
public final TimeSpan getTimeSpan(boolean withAssumedTimeForLastPageImpression)
TimeSpan of the Visit - from
first to last PIRecord.
withAssumedTimeForLastPageImpression - true will include
assumedTimeForLastPageImpressionfalse will NOT include
assumedTimeForLastPageImpressionTimeSpanpublic final boolean isBounce()
Visit is a "bounce" - meaning it
contains only one PIRecord.
true if and only if the Visit is a
"bounce", false otherwisepublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||