Interface ITimeSlice
-
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
ContinuousTimeSlice
,PriorityDependentTimeSlice
,QuantumTimeSlice
public interface ITimeSlice extends Cloneable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITimeSlice
clone()
void
fullReset()
Resets the remaining time to a full timeslice.double
getRemainingTime()
Returns Time until the timeslice is interrupted.void
halfReset()
boolean
isFinished()
Returns true if the timeslice is finished, false otherwise.void
punish(int penalty)
void
setExpired()
void
substractTime(double time)
Subtracts the specified amount of time from the timeslice.void
updateTimeForBoosting()
void
updateTimeForScheduling()
-
-
-
Method Detail
-
getRemainingTime
double getRemainingTime()
Returns Time until the timeslice is interrupted.
-
fullReset
void fullReset()
Resets the remaining time to a full timeslice.
-
substractTime
void substractTime(double time)
Subtracts the specified amount of time from the timeslice. The remaining timeslice MUST be greater or equal than zero.
-
isFinished
boolean isFinished()
Returns true if the timeslice is finished, false otherwise.
-
punish
void punish(int penalty)
-
setExpired
void setExpired()
-
clone
ITimeSlice clone()
-
halfReset
void halfReset()
-
updateTimeForBoosting
void updateTimeForBoosting()
-
updateTimeForScheduling
void updateTimeForScheduling()
-
-