|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.KernelAddress
public class KernelAddress
This class identifies a Kernel Address. It is the naming of the "home agent platform" in a transport address or communication scheme (as proposed in FIPA-1999-17). The syntax is now "host:id" but will probably change to "mka://host/id" to map better to the FIPA specification
Constructor Summary | |
---|---|
KernelAddress(boolean ipnumber)
Define a new unique KernelAddress on the local host |
|
KernelAddress(boolean ipnumber,
java.lang.String ipaddress)
|
|
KernelAddress(java.lang.String def)
Tries to parse an KernelAddress from a string representation. |
Method Summary | |
---|---|
void |
disableMobility()
|
void |
enableMobility()
|
boolean |
equals(java.lang.Object o)
Compare two KernelAdresses |
java.lang.String |
getHost()
Return the host name encoded in this KernelAddress |
java.lang.String |
getID()
Return the anonymous ID associated |
java.lang.String |
getInformation()
|
java.lang.String |
getKernelName()
|
boolean |
isLocal()
Check is this address is a local address |
void |
setKernelName(java.lang.String name)
|
java.lang.String |
shortString()
|
boolean |
supportMobility()
|
java.lang.String |
toString()
Returns the canonical string representation for this platform address |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KernelAddress(boolean ipnumber)
ipnumber
- define is the host must be in numeric form or resolved though the DNSpublic KernelAddress(boolean ipnumber, java.lang.String ipaddress)
public KernelAddress(java.lang.String def) throws InvalidAddressException
def
- string representation of Kernel address
InvalidAddressException
- if the string cannot be parsed in
the KernelAddress String formatMethod Detail |
---|
public boolean isLocal()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- other address (can be void)public java.lang.String getHost()
public java.lang.String getID()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getInformation()
public java.lang.String shortString()
public void setKernelName(java.lang.String name)
public java.lang.String getKernelName()
public void enableMobility()
public void disableMobility()
public boolean supportMobility()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |