Package eu.simuline.relana.model
Class DeficiencyNode
- java.lang.Object
-
- eu.simuline.relana.model.DeficiencyNode
-
public final class DeficiencyNode extends Object
Wraps aDeficiency
and serves as a node in the graph describing the relation\implies
. Created: Thu Apr 14 19:49:45 2005- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Field Summary
Fields Modifier and Type Field Description private Deficiency
deficiency
private Set<DeficiencyNode>
predecessors
private Set<DeficiencyNode>
successors
-
Constructor Summary
Constructors Constructor Description DeficiencyNode(Deficiency deficiency)
DeficiencyNode(DeficiencyNode node)
DeficiencyNode(Deficiency deficiency, Set<DeficiencyNode> predecessors, Set<DeficiencyNode> successors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(DeficiencyNode other)
void
addPredecessor(DeficiencyNode deficiencyNode)
void
addPredecessors(Set<DeficiencyNode> nodes)
void
addSuccessor(DeficiencyNode deficiencyNode)
void
addSuccessors(Set<DeficiencyNode> nodes)
boolean
equals(Object obj)
Deficiency
getDeficiency()
DeficiencyNode
getInverse()
Set<DeficiencyNode>
getPredecessors()
Set<DeficiencyNode>
getSuccessors()
int
hashCode()
String
toString()
static Set<Deficiency>
unwrap(Set<DeficiencyNode> defNodes)
-
-
-
Field Detail
-
predecessors
private Set<DeficiencyNode> predecessors
-
successors
private Set<DeficiencyNode> successors
-
deficiency
private final Deficiency deficiency
-
-
Constructor Detail
-
DeficiencyNode
public DeficiencyNode(Deficiency deficiency)
-
DeficiencyNode
public DeficiencyNode(Deficiency deficiency, Set<DeficiencyNode> predecessors, Set<DeficiencyNode> successors)
-
DeficiencyNode
public DeficiencyNode(DeficiencyNode node)
-
-
Method Detail
-
unwrap
public static Set<Deficiency> unwrap(Set<DeficiencyNode> defNodes)
-
getDeficiency
public Deficiency getDeficiency()
-
getPredecessors
public Set<DeficiencyNode> getPredecessors()
-
getSuccessors
public Set<DeficiencyNode> getSuccessors()
-
addPredecessor
public void addPredecessor(DeficiencyNode deficiencyNode)
-
addSuccessor
public void addSuccessor(DeficiencyNode deficiencyNode)
-
addPredecessors
public void addPredecessors(Set<DeficiencyNode> nodes)
-
addSuccessors
public void addSuccessors(Set<DeficiencyNode> nodes)
-
addAll
public void addAll(DeficiencyNode other)
-
getInverse
public DeficiencyNode getInverse()
-
-