public class Edge extends Object
Represents a graph between two identity blocks inclusive senders operation and time.
Constructor and Description |
---|
Edge(IdentityStoreBlock from,
IdentityStoreBlock to,
long startTime,
long maxDelay)
Represents a router graph during sending.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object t) |
long |
getDelayTime()
Gets the maximum delay time a router may choose to delay the edge starting at the
start time.
|
IdentityStoreBlock |
getFrom()
Get the sending entity.
|
long |
getStartTime()
Gets the start time of the edge relative to the graphsets start.
|
IdentityStoreBlock |
getTo()
Get the receiving entity.
|
int |
hashCode() |
long |
setDelayTime(long newMaxDelay)
Sets the maximum delay time a router may choose to delay the edge starting at the
start time.
|
long |
setStartTime(long newStartTime)
Sets the start time of the edge relative to the start time of the graph set.
|
String |
toString() |
public Edge(IdentityStoreBlock from, IdentityStoreBlock to, long startTime, long maxDelay)
Represents a router graph during sending.
from
- The starting point of the graphto
- The ending point of the graphstartTime
- The starting time relative to the GraphSet start (in ms)maxDelay
- The maximum delay after the start of this graph (in ms)IllegalArgumentException
- if from and two are equalNullPointerException
- if one of the parameters is nullpublic IdentityStoreBlock getFrom()
Get the sending entity.
public IdentityStoreBlock getTo()
Get the receiving entity.
public long getStartTime()
Gets the start time of the edge relative to the graphsets start.
public long setStartTime(long newStartTime)
Sets the start time of the edge relative to the start time of the graph set.
newStartTime
- the time to be set in millispublic long getDelayTime()
Gets the maximum delay time a router may choose to delay the edge starting at the start time.
public long setDelayTime(long newMaxDelay)
Sets the maximum delay time a router may choose to delay the edge starting at the start time.
newMaxDelay
- the new maximum time to be setCopyright © 2023. All rights reserved.