Package com.biglybt.core.speedmanager
Class SpeedLimitHandler.ScheduleRule
- java.lang.Object
-
- com.biglybt.core.speedmanager.SpeedLimitHandler.ScheduleRule
-
- Enclosing class:
- SpeedLimitHandler
private static class SpeedLimitHandler.ScheduleRule extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SpeedLimitHandler.ScheduleRuleExtensions>
extensions
private static byte
FR_DAILY
private static byte
FR_FRI
private static byte
FR_MON
private static byte
FR_OVERFLOW
private static byte
FR_SAT
private static byte
FR_SUN
private static byte
FR_THU
private static byte
FR_TUE
private static byte
FR_WED
private static byte
FR_WEEKDAY
private static byte
FR_WEEKEND
(package private) byte
frequency
(package private) int
from_mins
(package private) java.lang.String
profile_name
(package private) int
to_mins
-
Constructor Summary
Constructors Modifier Constructor Description private
ScheduleRule(byte _freq, java.lang.String _profile, int _from, int _to, java.util.List<SpeedLimitHandler.ScheduleRuleExtensions> _exts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkExtensions()
java.lang.String
getString()
private java.lang.String
getTime(int mins)
private java.lang.String
getTimeBit(int num)
private boolean
sameAs(SpeedLimitHandler.ScheduleRule other)
private java.util.List<SpeedLimitHandler.ScheduleRule>
splitByDay()
-
-
-
Field Detail
-
FR_MON
private static final byte FR_MON
- See Also:
- Constant Field Values
-
FR_TUE
private static final byte FR_TUE
- See Also:
- Constant Field Values
-
FR_WED
private static final byte FR_WED
- See Also:
- Constant Field Values
-
FR_THU
private static final byte FR_THU
- See Also:
- Constant Field Values
-
FR_FRI
private static final byte FR_FRI
- See Also:
- Constant Field Values
-
FR_SAT
private static final byte FR_SAT
- See Also:
- Constant Field Values
-
FR_SUN
private static final byte FR_SUN
- See Also:
- Constant Field Values
-
FR_OVERFLOW
private static final byte FR_OVERFLOW
- See Also:
- Constant Field Values
-
FR_WEEKDAY
private static final byte FR_WEEKDAY
- See Also:
- Constant Field Values
-
FR_WEEKEND
private static final byte FR_WEEKEND
- See Also:
- Constant Field Values
-
FR_DAILY
private static final byte FR_DAILY
- See Also:
- Constant Field Values
-
profile_name
final java.lang.String profile_name
-
frequency
final byte frequency
-
from_mins
final int from_mins
-
to_mins
final int to_mins
-
extensions
private final java.util.List<SpeedLimitHandler.ScheduleRuleExtensions> extensions
-
-
Constructor Detail
-
ScheduleRule
private ScheduleRule(byte _freq, java.lang.String _profile, int _from, int _to, java.util.List<SpeedLimitHandler.ScheduleRuleExtensions> _exts)
-
-
Method Detail
-
splitByDay
private java.util.List<SpeedLimitHandler.ScheduleRule> splitByDay()
-
checkExtensions
private void checkExtensions()
-
sameAs
private boolean sameAs(SpeedLimitHandler.ScheduleRule other)
-
getString
public java.lang.String getString()
-
getTime
private java.lang.String getTime(int mins)
-
getTimeBit
private java.lang.String getTimeBit(int num)
-
-