java.lang.Object
org.scoja.server.core.LinkableAtPython
org.scoja.server.core.FullLinkAtPython
org.scoja.server.core.Link
- All Implemented Interfaces:
- DecoratedLink, Linkable
- Direct Known Subclasses:
- Final, SwitchLink
- public class Link
- extends FullLinkAtPython
- implements Linkable, DecoratedLink
Es la clase base de todos los elementos que tratan con
Events.
Vale tanto para los elementos que producen, como los que filtran o
escriben; todo es igual, y todos pueden hacer cosas sobre los
elementos que los atraviesan.
La funcionalidad que se implementa a este nivel es la distribución
de los eventos producidos a todos los Links que se hayan
registrado.
|
Constructor Summary |
Link()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queue
protected EventQueue queue
targets
protected Link[] targets
used
protected int used
Link
public Link()
getTargetSize
public int getTargetSize()
setQueue
public void setQueue(EventQueue queue)
removeTarget
public void removeTarget(Linkable target)
addTarget
public void addTarget(Linkable target)
- Specified by:
addTarget in interface Linkable
addSimpleTarget
public void addSimpleTarget(Link target)
- Specified by:
addSimpleTarget in interface Linkable
addSimpleSource
public void addSimpleSource(Link source)
- Specified by:
addSimpleSource in interface Linkable
getLinkable
public Linkable getLinkable()
- Specified by:
getLinkable in interface DecoratedLink
process
public void process(EventContext env)
propagate
public void propagate(EventContext ectx)