Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scoja.server.core
Class Link  view Link download Link.java

java.lang.Object
  extended byorg.scoja.server.core.LinkableAtPython
      extended byorg.scoja.server.core.FullLinkAtPython
          extended byorg.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.


Field Summary
protected  EventQueue queue
           
protected  Link[] targets
           
protected  int used
           
 
Constructor Summary
Link()
           
 
Method Summary
 void addSimpleSource(Link source)
           
 void addSimpleTarget(Link target)
           
 void addTarget(Linkable target)
           
 Linkable getLinkable()
           
 int getTargetSize()
           
 void process(EventContext env)
           
 void propagate(EventContext ectx)
           
 void removeTarget(Linkable target)
           
 void setQueue(EventQueue queue)
           
 
Methods inherited from class org.scoja.server.core.FullLinkAtPython
__or__
 
Methods inherited from class org.scoja.server.core.LinkableAtPython
__rshift__
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

protected EventQueue queue

targets

protected Link[] targets

used

protected int used
Constructor Detail

Link

public Link()
Method Detail

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)