Class Info |
|---|
public class SampleSection Activity segmentation class, which stores the data of a single segment for a segment-based activity. |
Qualifier and Type | Class Name and Description |
|---|---|
public static class | Builder for SampleSection. |
Qualifier and Type | Method Name and Description |
|---|---|
int | Obtains the segment index. |
long | getSectionTime(TimeUnit timeUnit) Obtains the segment interval. |
long | getStartTime(TimeUnit timeUnit) Obtains the start time of a segment. |
long | getEndTime(TimeUnit timeUnit) Obtains the end time of a segment. |
List<SamplePoint> | Obtains the segment statistical data list. |
Constructor |
|---|
public SampleSection() Creates a SampleSection object. |
Method |
|---|
public int getSectionNum() Obtains the segment index. |
Returns
Type | Description |
|---|---|
int | Segment index. |
Method |
|---|
public long getSectionTime(TimeUnit timeUnit) Obtains the segment interval. |
Parameters
Name | Description |
|---|---|
timeUnit | Time unit. |
Returns
Type | Description |
|---|---|
long | Segment interval. |
Method |
|---|
public long getStartTime(TimeUnit timeUnit) Obtains the start time of a segment. |
Parameters
Name | Description |
|---|---|
timeUnit | Time unit. |
Returns
Type | Description |
|---|---|
long | Segment start time. |
Method |
|---|
public long getEndTime(TimeUnit timeUnit) Obtains the end time of a segment. |
Parameters
Name | Description |
|---|---|
timeUnit | Time unit. |
Returns
Type | Description |
|---|---|
long | Segment end time. |
Method |
|---|
public List<SamplePoint> getSectionDataList() Obtains the segment statistical data list. |
Returns
Type | Description |
|---|---|
List<SamplePoint> | Segment statistical data list. |