story.dbcore.links
Class WritableLinkSet
java.lang.Object
story.dbcore.links.LinkSet
story.dbcore.links.WritableLinkSet
public class WritableLinkSet
- extends LinkSet
Extension of LinkSet supporting write operations. Thus
instances of this class should not be exposed to high-level
classes, only RelatedNodes instances.
Method Summary |
void |
absorb(LinkSet other)
Add all the contents of another LinkSet in this one. |
void |
add(NodeAddress node,
Via via)
Add a new node and Via to the LinkSet. |
Methods inherited from class story.dbcore.links.LinkSet |
contains, getAllVias, getAllVias, getFirstLinkedNode, getFirstVia, getFirstVia, getImmutableLinkedNodes, getLinkedNodes, numberOfLinks, numLinkedNodes, render |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WritableLinkSet
public WritableLinkSet(LinkLabelRepository labelRepository)
- Constructor.
add
public void add(NodeAddress node,
Via via)
- Add a new node and Via to the LinkSet.
- Parameters:
node
- The node to add to the LinkSet.via
- The via to associate with the linked node in the
LinkSet. (We are linked to the node via what other link, if
any?)
absorb
public void absorb(LinkSet other)
- Add all the contents of another LinkSet in this one.
- Parameters:
other
- The foreign LinkSet to assimilate.
Copyright © 2011 David K. Elson. All Rights Reserved.