|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.iitb.untwine.Router
This class is designed to store the details of a router
Constructor Summary | |
Router()
Default class constructor. |
|
Router(java.lang.String ip)
Class copy constructor. |
Method Summary | |
java.util.Vector |
getInt()
Returns the interfaces corresponding to subnets attached to router |
java.lang.String |
getIP()
Returns the IP address of router |
java.util.Vector |
getPrevHop()
Returns the previous hop routers to this router |
java.util.Vector |
getSubnet()
Returns the subnets attached to router |
void |
hopAdd(java.lang.Object obj)
Add index of previous hop router to this router in previous hop list. |
void |
intAddElement(java.lang.Object obj,
int pos)
Add interface passed as parameter in interface list at the position specified as second parameter. |
int |
subnetAddElement(java.lang.Object obj)
Add subnet passed as parameter in subnetList and returns the index of that subnet in subnetList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Router()
public Router(java.lang.String ip)
ip
- IP address of routerMethod Detail |
public java.lang.String getIP()
public java.util.Vector getSubnet()
public java.util.Vector getPrevHop()
public java.util.Vector getInt()
public int subnetAddElement(java.lang.Object obj)
obj
- Object of class subnetpublic void intAddElement(java.lang.Object obj, int pos)
obj
- Object of class subnetpos
- Position in the interface list where
the interface number is to added.public void hopAdd(java.lang.Object obj)
obj
- Object of class Integer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |