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.RequestDurationIfc
carrying(java.lang.Object entity)
Request
days()
Creates the request interpreting the time in daysModelElement.RequestTimeIfc
forDuration(double time)
ModelElement.RequestTimeIfc
forDuration(GetValueIfc value)
ModelElement.RequestDurationIfc
havingPriority(int priority)
Request
hours()
Creates the request interpreting the time in hoursRequest
indefinitely()
Request
milliseconds()
Creates the request interpreting the time in millisecondsRequest
minutes()
Creates the request interpreting the time in minutesModelElement.RequestDurationIfc
reactingWith(RequestReactorIfc reactor)
Request
seconds()
Creates the request interpreting the time in secondsRequest
units()
Creates the request reactingWith the base time timeUnits associated carrying the modelModelElement.RequestDurationIfc
usingRule(Request.PreemptionRule rule)
Request
weeks()
Creates the request interpreting the time in weeksModelElement.RequestDurationIfc
withName(java.lang.String name)
-
-
-
Constructor Detail
-
RequestBuilder
public RequestBuilder(ResourceUnit resource)
-
-
Method Detail
-
carrying
public ModelElement.RequestDurationIfc carrying(java.lang.Object entity)
- Specified by:
carrying
in interfaceModelElement.RequestDurationIfc
-
reactingWith
public ModelElement.RequestDurationIfc reactingWith(RequestReactorIfc reactor)
- Specified by:
reactingWith
in interfaceModelElement.RequestUsingIfc
-
havingPriority
public ModelElement.RequestDurationIfc havingPriority(int priority)
- Specified by:
havingPriority
in interfaceModelElement.RequestDurationIfc
-
withName
public ModelElement.RequestDurationIfc withName(java.lang.String name)
- Specified by:
withName
in interfaceModelElement.RequestDurationIfc
-
usingRule
public ModelElement.RequestDurationIfc usingRule(Request.PreemptionRule rule)
- Specified by:
usingRule
in interfaceModelElement.RequestDurationIfc
-
indefinitely
public Request indefinitely()
- Specified by:
indefinitely
in interfaceModelElement.RequestDurationIfc
-
forDuration
public ModelElement.RequestTimeIfc forDuration(double time)
- Specified by:
forDuration
in interfaceModelElement.RequestDurationIfc
-
forDuration
public ModelElement.RequestTimeIfc forDuration(GetValueIfc value)
- Specified by:
forDuration
in interfaceModelElement.RequestDurationIfc
-
days
public final Request days()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request interpreting the time in days- Specified by:
days
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
minutes
public final Request minutes()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request interpreting the time in minutes- Specified by:
minutes
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
hours
public final Request hours()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request interpreting the time in hours- Specified by:
hours
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
seconds
public final Request seconds()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request interpreting the time in seconds- Specified by:
seconds
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
weeks
public final Request weeks()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request interpreting the time in weeks- Specified by:
weeks
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
milliseconds
public final Request milliseconds()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request interpreting the time in milliseconds- Specified by:
milliseconds
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
units
public final Request units()
Description copied from interface:ModelElement.RequestTimeIfc
Creates the request reactingWith the base time timeUnits associated carrying the model- Specified by:
units
in interfaceModelElement.RequestTimeIfc
- Returns:
- the request that was created
-
-