Package jsl.simulation
Class ModelElement.RequestBuilder
- java.lang.Object
-
- jsl.simulation.ModelElement.RequestBuilder
-
- All Implemented Interfaces:
ModelElement.RequestDurationIfc,ModelElement.RequestTimeIfc,ModelElement.RequestUsingIfc
- Enclosing class:
- ModelElement
public final class ModelElement.RequestBuilder extends java.lang.Object implements ModelElement.RequestUsingIfc, ModelElement.RequestDurationIfc, ModelElement.RequestTimeIfc
-
-
Constructor Summary
Constructors Constructor Description RequestBuilder(ResourceUnit resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelElement.RequestDurationIfccarrying(java.lang.Object entity)Requestdays()Creates the request interpreting the time in daysModelElement.RequestTimeIfcforDuration(double time)ModelElement.RequestTimeIfcforDuration(GetValueIfc value)ModelElement.RequestDurationIfchavingPriority(int priority)Requesthours()Creates the request interpreting the time in hoursRequestindefinitely()Requestmilliseconds()Creates the request interpreting the time in millisecondsRequestminutes()Creates the request interpreting the time in minutesModelElement.RequestDurationIfcreactingWith(RequestReactorIfc reactor)Requestseconds()Creates the request interpreting the time in secondsRequestunits()Creates the request reactingWith the base time timeUnits associated carrying the modelModelElement.RequestDurationIfcusingRule(Request.PreemptionRule rule)Requestweeks()Creates the request interpreting the time in weeksModelElement.RequestDurationIfcwithName(java.lang.String name)
-
-
-
Constructor Detail
-
RequestBuilder
public RequestBuilder(ResourceUnit resource)
-
-
Method Detail
-
carrying
public ModelElement.RequestDurationIfc carrying(java.lang.Object entity)
- Specified by:
carryingin interfaceModelElement.RequestDurationIfc
-
reactingWith
public ModelElement.RequestDurationIfc reactingWith(RequestReactorIfc reactor)
- Specified by:
reactingWithin interfaceModelElement.RequestUsingIfc
-
havingPriority
public ModelElement.RequestDurationIfc havingPriority(int priority)
- Specified by:
havingPriorityin interfaceModelElement.RequestDurationIfc
-
withName
public ModelElement.RequestDurationIfc withName(java.lang.String name)
- Specified by:
withNamein interfaceModelElement.RequestDurationIfc
-
usingRule
public ModelElement.RequestDurationIfc usingRule(Request.PreemptionRule rule)
- Specified by:
usingRulein interfaceModelElement.RequestDurationIfc
-
indefinitely
public Request indefinitely()
- Specified by:
indefinitelyin interfaceModelElement.RequestDurationIfc
-
forDuration
public ModelElement.RequestTimeIfc forDuration(double time)
- Specified by:
forDurationin interfaceModelElement.RequestDurationIfc
-
forDuration
public ModelElement.RequestTimeIfc forDuration(GetValueIfc value)
- Specified by:
forDurationin interfaceModelElement.RequestDurationIfc
-
days
public final Request days()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request interpreting the time in days- Specified by:
daysin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
minutes
public final Request minutes()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request interpreting the time in minutes- Specified by:
minutesin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
hours
public final Request hours()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request interpreting the time in hours- Specified by:
hoursin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
seconds
public final Request seconds()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request interpreting the time in seconds- Specified by:
secondsin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
weeks
public final Request weeks()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request interpreting the time in weeks- Specified by:
weeksin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
milliseconds
public final Request milliseconds()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request interpreting the time in milliseconds- Specified by:
millisecondsin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
units
public final Request units()
Description copied from interface:ModelElement.RequestTimeIfcCreates the request reactingWith the base time timeUnits associated carrying the model- Specified by:
unitsin interfaceModelElement.RequestTimeIfc- Returns:
- the request that was created
-
-