Class LinearSegment_MPARTC
- java.lang.Object
-
- org.networkcalculus.dnc.curves.mpa_rtc.LinearSegment_MPARTC
-
- All Implemented Interfaces:
LinearSegment
public class LinearSegment_MPARTC extends java.lang.Object implements LinearSegment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LinearSegment_MPARTC.LinearSegment_MPARTC_PwAffine_builder
-
Nested classes/interfaces inherited from interface org.networkcalculus.dnc.curves.LinearSegment
LinearSegment.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private ch.ethz.rtc.kernel.Segment
rtc_segment
-
Constructor Summary
Constructors Constructor Description LinearSegment_MPARTC(double x, double y, double s)
LinearSegment_MPARTC(ch.ethz.rtc.kernel.Segment segment)
LinearSegment_MPARTC(java.lang.String segment_str)
LinearSegment_MPARTC(LinearSegment segment)
-
Method Summary
Modifier and Type Method Description LinearSegment
copy()
boolean
equals(java.lang.Object obj)
Num
f(Num x)
static LinearSegment.Builder
getBuilder()
Num
getGrad()
Num
getX()
Num
getXIntersectionWith(LinearSegment other)
Num
getY()
int
hashCode()
boolean
isLeftopen()
MPA RTC implementation does not allow for user defined continuity.void
setGrad(Num grad)
void
setLeftopen(boolean leftopen)
MPA RTC implementation does not allow for user defined continuity.void
setRtc_segment(ch.ethz.rtc.kernel.Segment rtc_segment)
void
setX(double x)
void
setX(Num x)
void
setY(double y)
void
setY(Num y)
java.lang.String
toString()
-
-
-
Constructor Detail
-
LinearSegment_MPARTC
public LinearSegment_MPARTC(double x, double y, double s)
-
LinearSegment_MPARTC
public LinearSegment_MPARTC(LinearSegment segment)
-
LinearSegment_MPARTC
public LinearSegment_MPARTC(ch.ethz.rtc.kernel.Segment segment)
-
LinearSegment_MPARTC
public LinearSegment_MPARTC(java.lang.String segment_str)
-
-
Method Detail
-
setRtc_segment
public void setRtc_segment(ch.ethz.rtc.kernel.Segment rtc_segment)
-
f
public Num f(Num x)
- Specified by:
f
in interfaceLinearSegment
-
getX
public Num getX()
- Specified by:
getX
in interfaceLinearSegment
-
setX
public void setX(Num x)
- Specified by:
setX
in interfaceLinearSegment
-
setX
public void setX(double x)
-
getY
public Num getY()
- Specified by:
getY
in interfaceLinearSegment
-
setY
public void setY(Num y)
- Specified by:
setY
in interfaceLinearSegment
-
setY
public void setY(double y)
-
getGrad
public Num getGrad()
- Specified by:
getGrad
in interfaceLinearSegment
-
setGrad
public void setGrad(Num grad)
- Specified by:
setGrad
in interfaceLinearSegment
-
isLeftopen
public boolean isLeftopen()
MPA RTC implementation does not allow for user defined continuity. Left-continuity is assumed by default.- Specified by:
isLeftopen
in interfaceLinearSegment
-
setLeftopen
public void setLeftopen(boolean leftopen)
MPA RTC implementation does not allow for user defined continuity. Left-continuity is assumed by default.- Specified by:
setLeftopen
in interfaceLinearSegment
-
getXIntersectionWith
public Num getXIntersectionWith(LinearSegment other)
- Specified by:
getXIntersectionWith
in interfaceLinearSegment
-
copy
public LinearSegment copy()
- Specified by:
copy
in interfaceLinearSegment
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfaceLinearSegment
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceLinearSegment
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLinearSegment
- Overrides:
hashCode
in classjava.lang.Object
-
getBuilder
public static LinearSegment.Builder getBuilder()
-
-