Search
Schedule.getFreePeriodByLocation Method
See Also
 






Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified locations.

Namespace: com.mindfusion.scheduling.model
Package: com.mindfusion.scheduling.model

 Syntax

Java  Copy Code

public DateTime getFreePeriodByLocation (
    DateTime from,
    DateTime to,
    Duration duration,
    ResourceList<Location> locations
)

 Parameters

from

The start date of the interval in which to search for a free period.

to

The end date of the interval in which to search for a free period.

duration

The required minimum duration of the period.

locations

The locations whose items should be considered when looking for the free period.

 Return Value

A DateTime object representing the start time of the period found or DateTime.MinValue if none.

 Remarks

If there are recurring items associated with a resource in the specified list, the function execution might take very long if a period with the specified duration doesn't exist.

 See Also