public class ReplicationLink extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
association
drapeau positionné à
true lorsque le lien est une association. |
protected String |
name
nom du lien
|
protected Set<ReplicationNode> |
requires
liste des noeuds requis.
|
protected ReplicationNode |
source
le noeud source du lien
|
protected ReplicationNode |
target
le noeud destination du lien
|
Constructor and Description |
---|
ReplicationLink(ReplicationNode source,
ReplicationNode target,
String name,
boolean association) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReattach(Set<ReplicationNode> universe,
ReplicationNode currentNode)
Teste si on peut reattacher le lien en connaissant l'univers des
noeuds disponibles.
|
String |
getName() |
ReplicationNode |
getSource() |
ReplicationNode |
getTarget() |
boolean |
isAssociation() |
String |
toString() |
protected final ReplicationNode source
protected final ReplicationNode target
protected final Set<ReplicationNode> requires
protected final String name
protected final boolean association
true
lorsque le lien est une association.public ReplicationLink(ReplicationNode source, ReplicationNode target, String name, boolean association)
public String getName()
public ReplicationNode getSource()
public ReplicationNode getTarget()
public boolean isAssociation()
public boolean canReattach(Set<ReplicationNode> universe, ReplicationNode currentNode)
universe
- l'univers des noeuds disponiblescurrentNode
- le noeud qui vient d'etre repliquetrue
si on peut reattacher ce lienCopyright © 2004–2022 Code Lutin. All rights reserved.