|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.Broadcaster
public abstract class Broadcaster
This is the base class for broadcasters. RtStpsNodes that send units (frames, packets, or units) to receivers use a broadcaster to send them to more than one receiver.
All broadcasters could be made into RtStpsNodes without difficulty. I did not do this because I embed a broadcaster in every RT-STPS node, so there is no need for a standalone broadcaster node.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.util.ArrayList<Receiver> |
output
|
Constructor Summary | |
---|---|
protected |
Broadcaster(java.lang.String name,
Receiver r1,
Receiver r2)
Create a Broadcaster with an initial two target receivers. |
Method Summary | |
---|---|
void |
addReceiver(Receiver r)
Add a receiver to the broadcast list of receivers. |
void |
flush()
Flush the pipeline. |
java.lang.String |
getLinkName()
Get this broacaster's name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.util.ArrayList<Receiver> output
Constructor Detail |
---|
protected Broadcaster(java.lang.String name, Receiver r1, Receiver r2)
name
- A name used to tag error messages.r1
- The first receiver.r2
- The second receiver.Method Detail |
---|
public java.lang.String getLinkName()
getLinkName
in interface Receiver
public void addReceiver(Receiver r)
public void flush() throws RtStpsException
flush
in interface Receiver
RtStpsException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |