org.lucci.madhoc.network
Class Connection

java.lang.Object
  extended by org.lucci.madhoc.network.Connection

public class Connection
extends java.lang.Object


Constructor Summary
Connection(NetworkInterface d1, NetworkInterface d2)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getAvailableBandwith()
           
 double getCollisionProbability()
           
 double getCreationDate()
           
 double getDistance()
           
 double getEnvironmentPerturbation()
           
 double getGreatestDistancePossible()
           
 java.lang.String getIdentifier()
           
 int getMaximumBandwidth()
           
 NetworkInterface getNetworkInterface1()
           
 NetworkInterface getNetworkInterface2()
           
 NetworkingTechnology getNetworkType()
           
 double getQuality()
           
 NetworkInterface getSibbling(NetworkInterface d)
           
 double getSuppressionDate()
           
 int getUsedBandwith()
           
 int hashCode()
           
 void loadBandwith(int i)
           
 void remove()
           
 void resetIterationScopedValues()
           
 void setCreationDate(double creationDate)
           
 void setEnvironmentPerturbation(double p)
           
 void setSuppressionDate(double suppressionDate)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection(NetworkInterface d1,
                  NetworkInterface d2)
Method Detail

getNetworkInterface1

public NetworkInterface getNetworkInterface1()

getNetworkInterface2

public NetworkInterface getNetworkInterface2()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getIdentifier

public java.lang.String getIdentifier()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getSibbling

public NetworkInterface getSibbling(NetworkInterface d)

getDistance

public double getDistance()

getGreatestDistancePossible

public double getGreatestDistancePossible()

getQuality

public double getQuality()

getUsedBandwith

public int getUsedBandwith()

loadBandwith

public void loadBandwith(int i)

getMaximumBandwidth

public int getMaximumBandwidth()

getAvailableBandwith

public int getAvailableBandwith()

getNetworkType

public NetworkingTechnology getNetworkType()

remove

public void remove()

resetIterationScopedValues

public void resetIterationScopedValues()

getEnvironmentPerturbation

public double getEnvironmentPerturbation()

setEnvironmentPerturbation

public void setEnvironmentPerturbation(double p)

getCreationDate

public double getCreationDate()

setCreationDate

public void setCreationDate(double creationDate)

getSuppressionDate

public double getSuppressionDate()

setSuppressionDate

public void setSuppressionDate(double suppressionDate)

getCollisionProbability

public double getCollisionProbability()