Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Link |
build() |
Link.Builder |
copy(Link model) |
Link.Builder |
delayInMilliseconds(Double delayInMilliseconds)
difference of packet response time between source and destination in milliseconds
|
Link.Builder |
destination(String destination)
destination node id
|
Link.Builder |
forwardingLoss(Double forwardingLoss)
average packet loss
|
Link.Builder |
id(String id)
id of Link
|
Link.Builder |
maxDelayInMilliseconds(Double maxDelayInMilliseconds)
maximum delay in milliseconds
|
Link.Builder |
minDelayInMilliseconds(Double minDelayInMilliseconds)
minimum delay in milliseconds
|
Link.Builder |
repeatCount(Integer repeatCount)
number of times this link is repeated
|
Link.Builder |
source(String source)
source node id
|
public Link.Builder id(String id)
id of Link
id
- the value to setpublic Link.Builder source(String source)
source node id
source
- the value to setpublic Link.Builder destination(String destination)
destination node id
destination
- the value to setpublic Link.Builder repeatCount(Integer repeatCount)
number of times this link is repeated
repeatCount
- the value to setpublic Link.Builder forwardingLoss(Double forwardingLoss)
average packet loss
forwardingLoss
- the value to setpublic Link.Builder delayInMilliseconds(Double delayInMilliseconds)
difference of packet response time between source and destination in milliseconds
delayInMilliseconds
- the value to setpublic Link.Builder minDelayInMilliseconds(Double minDelayInMilliseconds)
minimum delay in milliseconds
minDelayInMilliseconds
- the value to setpublic Link.Builder maxDelayInMilliseconds(Double maxDelayInMilliseconds)
maximum delay in milliseconds
maxDelayInMilliseconds
- the value to setpublic Link build()
public Link.Builder copy(Link model)
Copyright © 2016–2023. All rights reserved.