|
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.Component
drcl.inet.socket.Launcher
This class is the front end of running real applications on JavaSim/INET. The process involves two steps:
start(String, String[], Node).
main() method to start with).
ThreadGroup, or if it does,
it does not open a socket in its own ThreadGroup. Note that a GUI application
may open socket in the GUI thread group, in which case, the application cannot run on
JavaSim without modification.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Constructor Summary | |
Launcher()
|
|
| Method Summary | |
void |
configure(java.lang.String map_)
Configures the launcher with a "map". |
java.net.SocketImpl |
createSocketImpl()
|
java.net.InetAddress |
getInetAddress(long javasimAddr_)
Returns the real InetAddress given the JavaSim/INET address (long). |
long |
getJavaSimAddr(java.net.InetAddress addr_)
Returns the corresponding JavaSim/INET address ( long) given the real
InetAddress. |
Node |
getNode()
Returns the node component in which the current thread is working for the JavaSimSocketImpl. |
java.lang.String |
info()
Returns information regarding this component. |
void |
removeSocket(JavaSimSocketImpl s_)
|
void |
reset()
Resets the component for being used anew. |
void |
restore()
|
void |
start(java.lang.String appClassName_,
java.lang.String[] args_,
Node node_)
Starts an application. |
void |
takeover()
|
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Launcher()
| Method Detail |
public long getJavaSimAddr(java.net.InetAddress addr_)
long) given the real
InetAddress.
public java.net.InetAddress getInetAddress(long javasimAddr_)
InetAddress given the JavaSim/INET address (long).
public Node getNode()
JavaSimSocketImpl.
public void takeover()
public void restore()
public void configure(java.lang.String map_)
<domain name> or <ip> <JavaSim address>
public void start(java.lang.String appClassName_,
java.lang.String[] args_,
Node node_)
public java.lang.String info()
Component
info in class Componentpublic void reset()
Component
reset in class Componentpublic java.net.SocketImpl createSocketImpl()
createSocketImpl in interface java.net.SocketImplFactorypublic void removeSocket(JavaSimSocketImpl s_)
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||