|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A node consists of an id/name, interfaces and services on its ports. Every interface is a LinkManager instance.
LinkManager
,
Service
Method Summary | |
int |
add_iface(LinkManager f)
Add an interface on the first available iface number. |
void |
attach_monitor(NodeMonitor nm)
Add monitor to this node, which will be notified when the ifaces change, ... |
int |
get_id()
Get id of this node. |
LinkManager |
get_iface(int i)
Get interface (modelled by a LinkManager) number i. |
int |
get_iface(Node n)
Get iface-number which goes to a node. |
int |
get_ifaces_count()
Get number of connected (!=null) interfaces. |
Link |
get_link(int n)
Get Link instance of this interface. |
int |
get_max_ifaces()
Get maximum number of interfaces which can be added to this node. |
java.lang.String |
get_name()
Get name of this node. |
Node |
get_peer(int n)
Get peer-node of this interface. |
Service |
get_service(int port)
Get service (port listener). |
void |
remove_monitor(NodeMonitor nm)
Remove monitor from this node. |
void |
set_iface(int n,
LinkManager f)
Set interface number n to a LinkManager. |
void |
set_service(Service service,
int port)
Set service (port listener). |
Method Detail |
public int get_id()
public java.lang.String get_name()
public int get_max_ifaces()
public int get_ifaces_count()
public void set_iface(int n, LinkManager f)
f
- interface instance, null if none.public int add_iface(LinkManager f)
public LinkManager get_iface(int i)
public int get_iface(Node n)
public Link get_link(int n)
public Node get_peer(int n)
public Service get_service(int port)
port
- port of the service.public void set_service(Service service, int port)
service
- Service instance.port
- Port number (first is 0).public void attach_monitor(NodeMonitor nm)
nm
- the monitorpublic void remove_monitor(NodeMonitor nm)
nm
- the monitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |