de.jiac.micro.sunspot.aodv
Class Address

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface de.jiac.micro.core.io.IAddress
MULTICAST, UNICAST
 
Constructor Summary
Address(byte type, String address)
           
 
Method Summary
static IMulticastAddress createMulticastAddress(String groupName)
           
static IUnicastAddress createUnicastAddress(long nodeID, String agentID)
           
 boolean equals(Object obj)
           
 String getGroupName()
           
 long getNodeAddress()
           
 String getSelector()
           
 String getTargetId()
           
 byte getType()
           
 int hashCode()
           
static Address parseAddress(String addressStr)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address(byte type,
               String address)
Method Detail

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.