public class DefaultAssociativeLinkageSystem extends java.lang.Object implements IAssociativeLinkageSystem
Link4
links, but does not install any code to
add/remove/learn the linksConstructor and Description |
---|
DefaultAssociativeLinkageSystem() |
Modifier and Type | Method and Description |
---|---|
void |
addLink(IAssociativeLink link)
add the link to the appropriate containers within the chunks.
|
void |
chunkWillBeDisposed(IChunk chunk)
here we clean up the associative links.
|
void |
copyAndRemapLinks(IChunk source,
IChunk destination,
boolean copySourceIs,
boolean copySourceJs)
copy all the specified links from source, replacing all occurences of
source with destination, and added to destination.
|
IAssociativeLink |
createLink(IChunk iChunk,
IChunk jChunk)
creates the default link.
|
protected void |
detachLink(IAssociativeLink link) |
IAssociativeLinkEquation |
getAssociativeLinkEquation() |
IChunkListener |
getChunkListener()
associative linkers will often require chunk listeners to perform their
job.
|
LinkParameterHandler |
getParameterHandler() |
LinkParameterProcessor |
getParameterProcessor(IChunk sourceChunk) |
void |
install(IModel model)
called by the model during the install(IInstallable) call.
|
protected void |
remapAndInstall(IChunk source,
IChunk dest,
IAssociativeLink link) |
void |
removeLink(IAssociativeLink link)
remove the link from the appropriate contains within the chunk.
|
void |
setAssociativeLinkEquation(IAssociativeLinkEquation equation) |
void |
uninstall(IModel model)
remove the element from this model.
|
public IAssociativeLink createLink(IChunk iChunk, IChunk jChunk)
createLink
in interface IAssociativeLinkageSystem
public IAssociativeLinkEquation getAssociativeLinkEquation()
getAssociativeLinkEquation
in interface IAssociativeLinkageSystem
public void setAssociativeLinkEquation(IAssociativeLinkEquation equation)
public void install(IModel model)
IInstallable
install
in interface IInstallable
public void uninstall(IModel model)
IInstallable
uninstall
in interface IInstallable
public IChunkListener getChunkListener()
DeclarativeModuleListener
public LinkParameterHandler getParameterHandler()
getParameterHandler
in interface IAssociativeLinkageSystem
public LinkParameterProcessor getParameterProcessor(IChunk sourceChunk)
getParameterProcessor
in interface IAssociativeLinkageSystem
public void chunkWillBeDisposed(IChunk chunk)
chunkWillBeDisposed
in interface IAssociativeLinkageSystem
protected void detachLink(IAssociativeLink link)
public void copyAndRemapLinks(IChunk source, IChunk destination, boolean copySourceIs, boolean copySourceJs)
IAssociativeLinkageSystem
copyAndRemapLinks
in interface IAssociativeLinkageSystem
copySourceIs
- copy those links where source is iChunk (i.e., these links spread
to the source chunk)copySourceJs
- copy those links where source is jChunk (i.e., these links spread
to the source chunk)protected void remapAndInstall(IChunk source, IChunk dest, IAssociativeLink link)
public void addLink(IAssociativeLink link)
IAssociativeLinkageSystem
addLink
in interface IAssociativeLinkageSystem
public void removeLink(IAssociativeLink link)
IAssociativeLinkageSystem
removeLink
in interface IAssociativeLinkageSystem