public class DependencyGraph
Class DependencyGraph. Provides dependencygraph functionality for the Hytale server.
java.lang.Object > DependencyGraph
Field Summary
edges
private
Edge[]
edges
Field edges.
system
final
ISystem
system
Field system.
index
final
int
index
Field index.
oldLength
final
int
oldLength
Field oldLength.
newLength
final
int
newLength
Field newLength.
fulfilled
private
boolean
fulfilled
Field fulfilled.
resolved
private
boolean
resolved
Field resolved.
Method Detail
addEdgeFromRoot
Method addEdgeFromRoot.
- Parameters:
@Nonnull final ISystemafterSystemfinal intpriority
addEdge
public
void
addEdge
(@Nonnull final ISystem beforeSystem, @Nonnull final ISystem afterSystem, final int priority)
Method addEdge.
- Parameters:
@Nonnull final ISystembeforeSystem@Nonnull final ISystemafterSystemfinal intpriority
IllegalArgumentException
public
new
IllegalArgumentException
("Found a cyclic dependency!" + String.valueOf(this)
Method IllegalArgumentException.
- Parameters:
"Found a cyclic dependency!" +String.valueOf(this
hasEdgeOfLaterPriority
Method hasEdgeOfLaterPriority.
- Parameters:
final ISystemsystemfinal intpriority
toString
public
String
toString
()
Method toString.
Edge
public
public
Edge
(@Nullable final ISystem beforeSystem, final ISystem afterSystem, final int priority)
Method Edge.
- Parameters:
@Nullable final ISystembeforeSystemfinal ISystemafterSystemfinal intpriority