public enum PreemptionStrategy extends Enum<PreemptionStrategy>
SimJob preemption.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
AbstractPreemptiveSimQueue| Enum Constant and Description |
|---|
CUSTOM
Takes a different approach at job preemption than mentioned in this list.
|
DEPART
Departs the preempted job, even though may not have finished its service requirements.
|
DROP
Drops the preempted job.
|
REDRAW
Puts the preempted job on hold; future service resumption requires the job to be served from scratch
with a new required service time.
|
RESTART
Puts the preempted job on hold; future service resumption requires the job to be served from scratch.
|
RESUME
Puts the preempted job on hold; future service resumption continues at the point where the previous service was interrupted.
|
| Modifier and Type | Method and Description |
|---|---|
static PreemptionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreemptionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreemptionStrategy DROP
public static final PreemptionStrategy RESUME
public static final PreemptionStrategy RESTART
public static final PreemptionStrategy REDRAW
public static final PreemptionStrategy DEPART
public static final PreemptionStrategy CUSTOM
public static PreemptionStrategy[] values()
for (PreemptionStrategy c : PreemptionStrategy.values()) System.out.println(c);
public static PreemptionStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.