Package jline.api.sn
Class SnSetArrivalKt
-
- All Implemented Interfaces:
public final class SnSetArrivalKt
-
-
Method Summary
Modifier and Type Method Description final static NetworkStructsnSetArrival(NetworkStruct sn, Integer classIdx, Double rate, Double scv, ModifyMode mode, ValidationLevel validation, Boolean autoRefresh)Sets the arrival rate for a class at the Source station. final static NetworkStructsnSetArrivalBatch(NetworkStruct sn, Matrix rates, Matrix scvs, ModifyMode mode, ValidationLevel validation, Boolean autoRefresh)Sets arrival rates for multiple classes in a single operation. -
-
Method Detail
-
snSetArrival
final static NetworkStruct snSetArrival(NetworkStruct sn, Integer classIdx, Double rate, Double scv, ModifyMode mode, ValidationLevel validation, Boolean autoRefresh)
Sets the arrival rate for a class at the Source station.
This is a convenience method that finds the Source station and delegates to snSetService. Arrival rates are stored in the same rates matrix as service rates, at the Source station's row.
- Parameters:
sn- NetworkStruct to modifyclassIdx- Class index (0-based)rate- New arrival rate (lambda, must be positive)scv- Squared coefficient of variation (default 1.mode- IN_PLACE modifies sn directly, COPY returns a modified copyvalidation- Validation level to applyautoRefresh- If true, refresh process fields after modification- Returns:
Modified NetworkStruct
-
snSetArrivalBatch
final static NetworkStruct snSetArrivalBatch(NetworkStruct sn, Matrix rates, Matrix scvs, ModifyMode mode, ValidationLevel validation, Boolean autoRefresh)
Sets arrival rates for multiple classes in a single operation.
More efficient than calling snSetArrival multiple times when updating many classes. NaN values in the rates matrix are skipped.
- Parameters:
sn- NetworkStruct to modifyrates- Matrix of new arrival rates (1 x nclasses or nclasses x 1) - NaN values are skippedscvs- Matrix of new SCVs (same size as rates) - optional, NaN values skippedmode- IN_PLACE modifies sn directly, COPY returns a modified copyvalidation- Validation level to applyautoRefresh- If true, refresh process fields after modification- Returns:
Modified NetworkStruct
-
-
-
-