A generic SetInterval class primarily used as the parent class to Set
and Interval
.
Returns an R6 object of class SetInterval.
SetInterval$new(symbol, lower, upper, type, class = "numeric", dimension)
Argument | Type | Details |
symbol |
character | String representation of SetInterval. |
lower |
numeric | Lower limit of SetInterval. |
upper |
numeric | Upper limit of SetInterval. |
type |
character | Interval type, one of (), (], [), []. |
class |
character | Atomic class, one of "numeric" or "integer". |
Accessor Methods | Link |
type() |
type.SetInterval |
dimension() |
dimension.SetInterval |
max() |
max.SetInterval |
min() |
min.SetInterval |
sup() |
sup.SetInterval |
inf() |
inf.SetInterval |
getSymbol() |
getSymbol.SetInterval |
class() |
class.SetInterval |
Validation Methods | Link |
liesInSetInterval(x, all = FALSE, bound = FALSE) |
liesInSetInterval |
Representation Methods | Link |
print() |
print |
Whilst this is not an abstract class, direct construction is generally not advised. Construction should instead be called on 'Set' or 'Interval'.
Set
for R6 Set objects and Interval
for R6 Interval objects.