Uses of Class
com.amalgamasimulation.service.Service
Packages that use Service
-
Uses of Service in com.amalgamasimulation.service
Subclasses of Service in com.amalgamasimulation.serviceModifier and TypeClassDescriptionclassAServicethat can simultaneously process specified number of units.classAServicethat is fully controlled programmatically, i.e.classServiceWithResources<T,R> AServicethat has the list of resources used to process some units.Fields in com.amalgamasimulation.service with type parameters of type ServiceModifier and TypeFieldDescriptionprotected List<BiConsumer<T, Service<T>>> Service.serviceRequestedCallbacksprotected List<BiConsumer<T, Service<T>>> Service.serviceRequestRemovedCallbacksprotected List<BiConsumer<T, Service<T>>> Service.serviceStartedCallbacksMethod parameters in com.amalgamasimulation.service with type arguments of type ServiceModifier and TypeMethodDescriptionvoidService.addServiceRequestRemovedCallback(BiConsumer<T, Service<T>> onServiceRequestRemoved) Adds a handler that is called every time a request for service of a unit is cancelled and it is removed from queue of waiting units without being served.voidService.addServiceStartedHandler(BiConsumer<T, Service<T>> onServiceStarted) Adds a handler that is called every time the service of a unit starts.voidService.addWaitingUnitArrivedHandler(BiConsumer<T, Service<T>> onServiceRequested) Adds a handler that is called every time a unit joins the queue of waiting units.voidFixedCapacityService.placeRequest(T unit, Consumer<Service<T>> onServiceStarted) voidManualService.placeRequest(T unit, Consumer<Service<T>> onServiceStarted) abstract voidService.placeRequest(T unit, Consumer<Service<T>> onServiceStarted) Places the request for service of the specified unit.voidServiceWithResources.placeRequest(T unit, BiConsumer<Service<T>, R> onServiceStarted) Places the request for service of the specified unit and allows to handle resource used to service the unit in the callback.voidServiceWithResources.placeRequest(T unit, Consumer<Service<T>> onServiceStarted) voidService.removeServiceRequestRemovedCallback(BiConsumer<T, Service<T>> onServiceRequestRemoved) Removes a previously added handler that is called every time a request for service of a unit is cancelled.voidService.removeServiceStartedHandler(BiConsumer<T, Service<T>> onServiceStarted) Removes a previously added handler that is called every time the service of a unit starts.voidService.removeWaitingUnitArrivedHandler(BiConsumer<T, Service<T>> onServiceRequested) Removes a previously added handler that is called every time a unit joins the queue of waiting units.