|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Message
drcl.inet.socket.SocketContract.Message
| Constructor Summary | |
SocketContract.Message()
|
|
SocketContract.Message(int connectionID_)
Creates an ESTABLISHED msg. |
|
SocketContract.Message(int connectionID_,
boolean reply_,
java.lang.Object msgID_)
Creates a CLOSE/CLOSE_REPLY request. |
|
SocketContract.Message(int connectionID_,
long localAddr_,
int localPort_,
java.lang.Object msgID_)
Creates a CLOSE request. |
|
SocketContract.Message(int connectionID_,
long remoteAddr_,
int remotePort_,
Port tcpPort_,
java.lang.Object msgID_)
Creates an ACCEPT_REPLY. |
|
SocketContract.Message(int connectionID_,
Port tcpPort_,
java.lang.Object msgID_)
Creates an CONNECT_REPLY. |
|
SocketContract.Message(long remoteAddr_,
int remotePort_,
long localAddr_,
int localPort_,
java.lang.Object msgID_)
Creates a CONNECT request. |
|
SocketContract.Message(long localAddr_,
int localPort_,
java.lang.Object msgID_)
Creates an ACCEPT request. |
|
SocketContract.Message(java.lang.String error_,
int connectionID_,
long remoteAddr_,
int remotePort_,
long localAddr_,
int localPort_,
java.lang.Object msgID_)
Creates an ERROR message. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
int |
getConnectionID()
|
Contract |
getContract()
Returns the associated contract of this message. |
java.lang.String |
getError()
|
long |
getLocalAddr()
|
int |
getLocalPort()
|
java.lang.Object |
getMessageID()
|
Port |
getPort()
|
long |
getRemoteAddr()
|
int |
getRemotePort()
|
int |
getType()
|
boolean |
isAccept()
|
boolean |
isAcceptReply()
|
boolean |
isClose()
|
boolean |
isCloseReply()
|
boolean |
isConnect()
|
boolean |
isConnectReply()
|
boolean |
isError()
|
boolean |
isEstablished()
|
void |
setLocalPort(int localPort_)
|
java.lang.String |
toString(java.lang.String separator_)
Prints the content of the message by separating each field with the separator string. |
| Methods inherited from class drcl.comp.Message |
toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SocketContract.Message()
public SocketContract.Message(int connectionID_)
public SocketContract.Message(int connectionID_,
boolean reply_,
java.lang.Object msgID_)
public SocketContract.Message(int connectionID_,
long localAddr_,
int localPort_,
java.lang.Object msgID_)
public SocketContract.Message(long localAddr_,
int localPort_,
java.lang.Object msgID_)
public SocketContract.Message(int connectionID_,
long remoteAddr_,
int remotePort_,
Port tcpPort_,
java.lang.Object msgID_)
public SocketContract.Message(long remoteAddr_,
int remotePort_,
long localAddr_,
int localPort_,
java.lang.Object msgID_)
public SocketContract.Message(int connectionID_,
Port tcpPort_,
java.lang.Object msgID_)
public SocketContract.Message(java.lang.String error_,
int connectionID_,
long remoteAddr_,
int remotePort_,
long localAddr_,
int localPort_,
java.lang.Object msgID_)
| Method Detail |
public int getConnectionID()
public long getLocalAddr()
public int getLocalPort()
public void setLocalPort(int localPort_)
public long getRemoteAddr()
public int getRemotePort()
public Port getPort()
public java.lang.String getError()
public boolean isAccept()
public boolean isAcceptReply()
public boolean isConnect()
public boolean isConnectReply()
public boolean isClose()
public boolean isCloseReply()
public boolean isEstablished()
public boolean isError()
public int getType()
public java.lang.Object getMessageID()
public void duplicate(java.lang.Object source_)
DrclObjsource_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
duplicate in interface ObjectDuplicableduplicate in class DrclObjpublic java.lang.Object clone()
DrclObjDrclObj.duplicate(Object) to duplicate the content of this object to
the newly-created one.
This method uses getClass().newInstance() to create
new instance. Hence,
subclasses need to override this method only if the subclass is not
declared as public or does not have explicit no-argument constructor.
A subclass may override this method for performance reason.
clone in interface ObjectDuplicableclone in class DrclObjpublic Contract getContract()
Message
getContract in class Messagepublic java.lang.String toString(java.lang.String separator_)
Message
toString in class Message
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||