|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.nodeos.Address
An address object hides the details and implementation of addressing in Janos. Addresses can only be created through an AddressFactory.
An Address has two parts a logical "active network" address and an underlying "physical address". The physical address in this implementation of Address is the combination of a protocol specification and an address specification; This is similar to what is described in the NodeOS specification for addressing.
The "active address" is a 32-bit IP-like number.
Address objects are immutable. They must be immutable because anyone(?) can read them out of routing tables...
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
static int |
fromString(java.lang.String name)
Generate a 32-bit integer from the given string address. |
static AddressFactory |
getAddressFactory()
Get the global AddressFactory. |
java.lang.String |
getAddressSpec()
|
int |
getANAddress()
|
java.lang.String |
getProtocolSpec()
|
int |
hashCode()
|
java.lang.String |
toString()
|
static java.lang.String |
toString(int a)
Generate a string representation of the given 32-bit integer address. |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public static AddressFactory getAddressFactory()
public int getANAddress()
public java.lang.String getProtocolSpec()
public java.lang.String getAddressSpec()
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.Object clone()
public java.lang.String toString()
public static java.lang.String toString(int a)
public static int fromString(java.lang.String name) throws AddressFormatException
name
- A dotted-quad string address
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |