|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DependencyResolution>
org.jtools.depend.DependencyResolution
public enum DependencyResolution
Enumerates predefined DependencyAlgorithm's.
Dependencies.setAlgorithm(DependencyResolution)
Enum Constant Summary | |
---|---|
AS_EARLY_AS_POSSIBLE
Resolves Dependencies in forward manier. |
|
AS_LATE_AS_POSSIBLE
Resolves Dependencies in backward manier. |
Method Summary | |
---|---|
DependencyAlgorithm |
getAlgorithm()
|
static DependencyResolution |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DependencyResolution[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DependencyResolution AS_EARLY_AS_POSSIBLE
L
that contains all N
targets T[0]...T[N-1]
sorted with respect to their natural order.
L
from 0
to N-1
, for each T[n]
:L'
that contains all targets T'[m]
on
which T[n]
depends.m>n
: move the target at position m
to position
n
(T[n]
is now position T[n+1]
) and continue with
2. for the new T[n]
.
public static final DependencyResolution AS_LATE_AS_POSSIBLE
L
that contains all N
targets T[0]...T[N-1]
sorted with respect to their natural order.
L
from N-1
to 0
, for each T[n]
:L'
that contains all targets T'[m]
that are affected
by T[n]
.m<n
: move the target at position m
to position
n
(T[n]
is now position T[n-1]
) and continue with
2. for the new T[n]
.
Method Detail |
---|
public static final DependencyResolution[] values()
for(DependencyResolution c : DependencyResolution.values()) System.out.println(c);
public static DependencyResolution valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic DependencyAlgorithm getAlgorithm()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |