appia.protocols.fifo.fifodual
Class Header

java.lang.Object
  |
  +--appia.protocols.fifo.fifodual.Header

public class Header
extends java.lang.Object

Class that implements the header of a message.

See Also:
SendableEvent, FifoDualSession

Field Summary
protected  boolean hisSyn
           
protected  boolean mySyn
           
protected  PeerInfo peer
           
protected  int sequenceNumber
           
protected  WaitingMessage waitingMessage
           
 
Constructor Summary
Header(PeerInfo peer, WaitingMessage we)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void pushHeader(appia.events.SendableEvent e, int nextIncoming)
          push a header into the message of the sendable event
 void pushHeader(appia.events.SendableEvent e, int nextIncoming, int id)
          push a header with a id into the message of the sendable event
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mySyn

protected boolean mySyn

hisSyn

protected boolean hisSyn

sequenceNumber

protected int sequenceNumber

waitingMessage

protected WaitingMessage waitingMessage

peer

protected PeerInfo peer
Constructor Detail

Header

public Header(PeerInfo peer,
              WaitingMessage we)
Method Detail

pushHeader

public void pushHeader(appia.events.SendableEvent e,
                       int nextIncoming)
push a header into the message of the sendable event


pushHeader

public void pushHeader(appia.events.SendableEvent e,
                       int nextIncoming,
                       int id)
push a header with a id into the message of the sendable event


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object