Package types.basic.tbool
Interface TBool
- All Known Implementing Classes:
TBoolInst
,TBoolSeq
,TBoolSeqSet
public interface TBool
- Author:
- ARIJIT SAMAL
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
always_eq
(boolean value) Returns whether "this" is always equal to "value".default TBool
Returns the temporal conjunction of `this` and `other`.default String
as_wkt()
Returns the string representation of "this" in WKT format.default TBool
at
(boolean other) Returns a new temporal boolean with the values of "this" restricted to the time or value "other".default boolean
Returns the ending value of "this".default boolean
ever_eq
(boolean value) Returns whether "this" is ever equal to "value".default TBool
from_base_temporal
(boolean value, Temporal base) Create a temporal Boolean from a Boolean value and the time frame of another temporal object.static Temporal
from_base_time
(boolean value, Time base) Create a temporal boolean from a boolean value and a time object.default TBool
from_mfjson
(String mfjson) Returns a temporal object from a MF-JSON string.jnr.ffi.Pointer
default TBool
invert()
Returns the temporal negation of `self`.default TBool
minus
(boolean other) Returns a new temporal boolean with the values of "this" restricted to the complement of the time or value "other".default TBool
neg()
Returns the temporal negation of `this`.default boolean
never_eq
(boolean value) Returns whether "this" is never equal to "value".default TBool
Returns the temporal disjunction of `this` and `other`.default boolean
Returns the starting value of "this".default TBool
temporal_and
(TBool other) Returns the temporal conjunction of "this" and "other".default TBool
temporal_and_bool
(boolean other) Returns the temporal conjunction of "this" and "other".default TBool
temporal_equal
(boolean other) Returns the temporal equality relation between "this" and "other".default TBool
Returns the temporal negation of "this".default TBool
temporal_not_equal
(boolean other) Returns the temporal inequality relation between "this" and "other".default TBool
temporal_or
(TBool other) Returns the temporal disjunction of "this" and "other".default TBool
temporal_or_bool
(boolean other) Returns the temporal disjunction of "this" and "other".default String
Returns the string representation of "this".default boolean
Returns the value that `self` takes at a certain moment.Returns the unique values in `self`.default tstzspanset
Returns a period set with the periods where "this" is False.default tstzspanset
Returns a period set with the periods where "this" is True.
-
Field Details
-
customType
- See Also:
-
-
Method Details
-
getBoolInner
jnr.ffi.Pointer getBoolInner() -
getCustomType
String getCustomType() -
getTemporalType
TemporalType getTemporalType() -
from_base_temporal
Create a temporal Boolean from a Boolean value and the time frame of another temporal object.MEOS Functions:
- tbool_from_base_temp
- Parameters:
value
- Boolean value.base
- Temporal object to use as time frame.- Returns:
- A new :class:`TBool` object.
-
from_base_time
Create a temporal boolean from a boolean value and a time object.MEOS Functions:
- tboolinst_make
- tboolseq_from_base_timestampset
- tboolseq_from_base_period
- tboolseqset_from_base_periodset
- Parameters:
value
- Boolean value.base
- Time object to use as temporal dimension.- Returns:
- A new temporal boolean.
-
from_mfjson
Returns a temporal object from a MF-JSON string. Args: mfjson: The MF-JSON string. Returns: A temporal object from a MF-JSON string. MEOS Functions: tbool_from_mfjson -
to_string
Returns the string representation of "this".MEOS Function:
- tbool_out
- Returns:
- Returns the string representation of "this"
-
as_wkt
Returns the string representation of "this" in WKT format.MEOS Function:
- tbool_out
- Returns:
- Returns the string representation of "this"
-
value_set
Returns the unique values in `self`. MEOS Function: tbool_values -
start_value
default boolean start_value()Returns the starting value of "this". MEOS Function:- tbool_start_value
- Returns:
- Returns the starting value of "this".
-
end_value
default boolean end_value()Returns the ending value of "this". MEOS Function:- tbool_end_value
- Returns:
- Returns the ending value of "this".
-
value_at_timestamp
Returns the value that `self` takes at a certain moment. Args: timestamp: Timestamp to get the value at. Returns: The value at the given timestamp. MEOS Function: tbool_value_at_timestamptz -
always_eq
default boolean always_eq(boolean value) Returns whether "this" is always equal to "value".MEOS Function:
- tbool_always_eq
- Parameters:
value
- Value to check for.- Returns:
- True if "this" is always equal to "value", False otherwise.
-
ever_eq
default boolean ever_eq(boolean value) Returns whether "this" is ever equal to "value".MEOS Function:
- tbool_ever_eq
- Parameters:
value
- Value to check for.- Returns:
- True if "this" is ever equal to "value", False otherwise.
-
never_eq
default boolean never_eq(boolean value) Returns whether "this" is never equal to "value".MEOS Function:
- tbool_ever_eq
- Parameters:
value
- Value to check for.- Returns:
- True if "this" is never equal to "value", False otherwise.
-
temporal_equal
Returns the temporal equality relation between "this" and "other".MEOS Functions:
- teq_tbool_tbool
- teq_temporal_temporal
- Parameters:
other
- A temporal or boolean object to compare to "this".- Returns:
- A
TBool
with the result of the temporal equality relation.
-
temporal_not_equal
Returns the temporal inequality relation between "this" and "other".MEOS Functions:
- teq_tbool_tbool
- teq_temporal_temporal
- Parameters:
other
- A temporal or boolean object to compare to "this".- Returns:
- A
TBool
with the result of the temporal inequality relation.
-
at
Returns a new temporal boolean with the values of "this" restricted to the time or value "other".MEOS Functions:
- tbool_at_value
- temporal_at_timestamp
- temporal_at_timestampset
- temporal_at_period
- temporal_at_periodset
- Parameters:
other
- Time or value to restrict to.- Returns:
- A new temporal boolean.
-
minus
Returns a new temporal boolean with the values of "this" restricted to the complement of the time or value "other".MEOS Functions:
- tbool_minus_value
- temporal_minus_timestamp
- temporal_minus_timestampset
- temporal_minus_period
- temporal_minus_periodset
- Parameters:
other
- Time or value to restrict to the complement of.- Returns:
- A new temporal boolean.
-
temporal_and
Returns the temporal conjunction of "this" and "other".MEOS Functions:
- tand_tbool_bool
- tand_tbool_tbool
- Parameters:
other
- A temporal or boolean object to combine with "this".- Returns:
- A
TBool
with the temporal conjunction of "this" and * "other".
-
and
Returns the temporal conjunction of `this` and `other`. Args: other: A temporal or boolean object to combine with `this`. Returns: A :class:`TBool` with the temporal conjunction of `this` and `other`. MEOS Functions: tand_tbool_bool, tand_tbool_tbool -
temporal_and_bool
Returns the temporal conjunction of "this" and "other".MEOS Functions:
- tand_tbool_bool
- tand_tbool_tbool
- Parameters:
other
- A temporal or boolean object to combine with "this".- Returns:
- A
TBool
with the temporal conjunction of "this" and * "other".
-
temporal_or
Returns the temporal disjunction of "this" and "other".MEOS Functions:
- tor_tbool_bool
- tor_tbool_tbool
- Parameters:
other
- A temporal or boolean object to combine with "this".- Returns:
- A
TBool
with the temporal disjunction of "this" and * "other".
-
or
Returns the temporal disjunction of `this` and `other`. Args: other: A temporal or boolean object to combine with `this`. Returns: A :class:`TBool` with the temporal disjunction of `this` and `other`. MEOS Functions: tor_tbool_bool, tor_tbool_tbool -
temporal_or_bool
Returns the temporal disjunction of "this" and "other".MEOS Functions:
- tor_tbool_bool
- tor_tbool_tbool
- Parameters:
other
- A temporal or boolean object to combine with "this".- Returns:
- A
TBool
with the temporal disjunction of "this" and * "other".
-
temporal_not
Returns the temporal negation of "this".MEOS Function:
- tnot_tbool
- Returns:
- A
TBool
with the temporal negation of "this".
-
when_true
Returns a period set with the periods where "this" is True.MEOS Function:
- tbool_when_true
- Returns:
- A
tstzspan
with the periods where "this" is True.
-
when_false
Returns a period set with the periods where "this" is False.MEOS Function:
- tbool_when_true
- Returns:
- A
tstzspan
with the periods where "this" is False.
-
neg
Returns the temporal negation of `this`. Returns: A :class:`TBool` with the temporal negation of `this`. MEOS Function: tnot_tbool -
invert
Returns the temporal negation of `self`. Returns: A :class:`TBool` with the temporal negation of `self`. MEOS Function: tnot_tbool
-