Home | Trees | Indices | Help |
---|
|
A duration This class is just a wrapper around five DateTimes. When dealing with durations in Haizea (such as the requested duration for a lease), we want to keep track of the following: - The requested duration - The accumulated duration (when the entire duration of the lease can't be scheduled without interrumption, this keeps track of how much duration has been fulfilled so far) - The actual duration (which might not be the same as the requested duration) For the purposes of simulation, we also want to keep track of the "original" duration (since the requested duration can be modified to simulate certain overheads) and the "known" duration (when simulating lease workloads, this is the actual duration of the lease, which is known a posteriori).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructor Argument: requested -- The requested duration known -- The known duration (ONLY in simulation)
|
Increments the requested duration by an amount. Argument: t -- The time to add to the requested duration. |
Increments the requested duration by a percentage. Argument: pct -- The percentage of the requested duration to add. |
Increments the accumulated duration by an amount. Argument: t -- The time to add to the accumulated duration. |
Returns the amount of time required to fulfil the entire known duration of the lease. ONLY for simulations. |
Returns a string representation of the Duration
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Dec 17 10:59:20 2009 | http://epydoc.sourceforge.net |