public class Server
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
alias |
|
private int |
id |
|
private MaxServiceCurve |
max_service_curve |
A zero delay burst curve lets the influence of the maximum service curve
vanish
|
private boolean |
max_service_curve_flag |
|
private AnalysisConfig.Multiplexing |
multiplexing |
|
private ServiceCurve |
service_curve |
|
private boolean |
use_extra_gamma |
Whether to constrain the output bound further through convolution with the
maximum service curve's rate as the server cannot output data faster than
this rate.
|
private boolean |
use_gamma |
Whether to use maximum service curves in output bound computation
|
Modifier | Constructor | Description |
---|---|---|
private |
Server() |
|
protected |
Server(int id,
java.lang.String alias,
ServiceCurve service_curve,
MaxServiceCurve max_service_curve,
AnalysisConfig.Multiplexing multiplexing,
boolean use_gamma,
boolean use_extra_gamma) |
|
protected |
Server(int id,
java.lang.String alias,
ServiceCurve service_curve,
AnalysisConfig.Multiplexing multiplexing) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAlias() |
|
MaxServiceCurve |
getExtraGamma() |
In contrast to
getMaxServiceCurve() this function always returns
the default zero delay burst curve if the useExtraGamma flag is not set. |
MaxServiceCurve |
getGamma() |
In contrast to
getMaxServiceCurve() this function always returns
the default zero delay burst curve if the useGamma flag is not set. |
int |
getId() |
|
MaxServiceCurve |
getMaxServiceCurve() |
|
ServiceCurve |
getServiceCurve() |
|
AnalysisConfig.Multiplexing |
multiplexingDiscipline() |
|
boolean |
removeMaxServiceCurve() |
|
void |
setAlias(java.lang.String alias) |
|
boolean |
setMaxServiceCurve(MaxServiceCurve max_service_curve) |
Setting a maximum service curve also enables useGamma and useExtraGamma.
|
boolean |
setMaxServiceCurve(MaxServiceCurve max_service_curve,
boolean use_gamma,
boolean use_extra_gamma) |
|
void |
setMultiplexingDiscipline(AnalysisConfig.Multiplexing mux) |
|
boolean |
setServiceCurve(ServiceCurve service_curve) |
|
void |
setUseExtraGamma(boolean use_extra_gamma) |
|
void |
setUseGamma(boolean use_gamma) |
|
java.lang.String |
toExtendedString() |
|
java.lang.String |
toShortString() |
|
java.lang.String |
toString() |
|
boolean |
useExtraGamma() |
|
boolean |
useGamma() |
private int id
private java.lang.String alias
private ServiceCurve service_curve
private MaxServiceCurve max_service_curve
private boolean max_service_curve_flag
private boolean use_gamma
private boolean use_extra_gamma
private AnalysisConfig.Multiplexing multiplexing
private Server()
protected Server(int id, java.lang.String alias, ServiceCurve service_curve, MaxServiceCurve max_service_curve, AnalysisConfig.Multiplexing multiplexing, boolean use_gamma, boolean use_extra_gamma)
id
- The server's id (unique).alias
- The server's alias (not necessarily unique).service_curve
- The server's service curve.max_service_curve
- The server's maximum service curve.multiplexing
- The server's flow multiplexing discipline.use_gamma
- Convolve the maximum service curve with the arrival curve before
deriving an output bound.use_extra_gamma
- Convolve the output bound with the maximum service curve.protected Server(int id, java.lang.String alias, ServiceCurve service_curve, AnalysisConfig.Multiplexing multiplexing)
public int getId()
public boolean setServiceCurve(ServiceCurve service_curve)
public ServiceCurve getServiceCurve()
public boolean setMaxServiceCurve(MaxServiceCurve max_service_curve)
max_service_curve
- The maximum service curve.public boolean setMaxServiceCurve(MaxServiceCurve max_service_curve, boolean use_gamma, boolean use_extra_gamma)
public boolean removeMaxServiceCurve()
public MaxServiceCurve getMaxServiceCurve()
public MaxServiceCurve getGamma()
getMaxServiceCurve()
this function always returns
the default zero delay burst curve if the useGamma flag is not set.public MaxServiceCurve getExtraGamma()
getMaxServiceCurve()
this function always returns
the default zero delay burst curve if the useExtraGamma flag is not set.public boolean useGamma()
public void setUseGamma(boolean use_gamma)
public boolean useExtraGamma()
public void setUseExtraGamma(boolean use_extra_gamma)
public AnalysisConfig.Multiplexing multiplexingDiscipline()
public void setMultiplexingDiscipline(AnalysisConfig.Multiplexing mux)
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
public java.lang.String toShortString()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toExtendedString()