public final class SegmentInfo extends Object
Constructor and Description |
---|
SegmentInfo(int id,
int layerId,
int diversionId,
SortedSet<Integer> buckets) |
SegmentInfo(int id,
int layerId,
int diversionId,
SortedSet<Integer> buckets,
Condition<ExperimentState> condition,
long startTimeMsec,
long endTimeMsec,
long prePeriodTimeMsec,
long postPeriodTimeMsec) |
Modifier and Type | Method and Description |
---|---|
SortedSet<Integer> |
getBuckets() |
int |
getDiversionId() |
long |
getEndTimeMsec() |
int |
getId() |
int |
getLayerId() |
long |
getPostPeriodTimeMsec() |
long |
getPrePeriodTimeMsec() |
long |
getStartTimeMsec() |
boolean |
isActive(long timeMsec) |
boolean |
isValidFor(ExperimentState state) |
boolean |
overridesEnabled(long timeMsec) |
public SegmentInfo(int id, int layerId, int diversionId, SortedSet<Integer> buckets, Condition<ExperimentState> condition, long startTimeMsec, long endTimeMsec, long prePeriodTimeMsec, long postPeriodTimeMsec)
public int getId()
public int getLayerId()
public int getDiversionId()
public long getStartTimeMsec()
public long getEndTimeMsec()
public long getPrePeriodTimeMsec()
public long getPostPeriodTimeMsec()
public boolean overridesEnabled(long timeMsec)
public boolean isActive(long timeMsec)
public boolean isValidFor(ExperimentState state)
Copyright © 2013. All rights reserved.