de.jiac.micro.sunspot.aodv
Class Address
java.lang.Object
de.jiac.micro.sunspot.aodv.Address
- All Implemented Interfaces:
- IAddress, IMulticastAddress, IUnicastAddress
public class Address
- extends Object
- implements IMulticastAddress, IUnicastAddress
Vladimir Schöner
$Revision$
TODO implement methods
Address
public Address(byte type,
String address)
createMulticastAddress
public static IMulticastAddress createMulticastAddress(String groupName)
createUnicastAddress
public static IUnicastAddress createUnicastAddress(long nodeID,
String agentID)
parseAddress
public static Address parseAddress(String addressStr)
getType
public byte getType()
- Specified by:
getType in interface IAddress
toString
public String toString()
- Specified by:
toString in interface IAddress- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getTargetId
public String getTargetId()
- Specified by:
getTargetId in interface IUnicastAddress
getNodeAddress
public long getNodeAddress()
getSelector
public String getSelector()
- Specified by:
getSelector in interface IUnicastAddress
getGroupName
public String getGroupName()
- Specified by:
getGroupName in interface IMulticastAddress
Copyright © 2008-2011 DAI-Labor. All Rights Reserved.