toggle menu
moonlight
1.0-SNAPSHOT
jvm
switch theme
search in API
engine
/
io.github.moonlightsuite.moonlight.offline.signal
/
VariableArraySignal
Variable
Array
Signal
public
class
VariableArraySignal
extends
Signal
<
T
>
Author
loreti
Members
Constructors
Variable
Array
Signal
Link copied to clipboard
public
void
VariableArraySignal
(
RecordHandler
factory
)
Functions
add
Link copied to clipboard
public
void
add
(
double t
,
T
value
)
Add (t, value) to the sample set
add
Before
Link copied to clipboard
public
void
addBefore
(
double t
,
T
value
)
Add (t,value) to the sample set
add
From
Map
Link copied to clipboard
public
void
addFromMap
(
double t
,
Map
<
String
,
Object
>
values
)
add
From
Object
Link copied to clipboard
public
void
addFromObject
(
double t
,
Array
<
Object
>
values
)
add
From
String
Link copied to clipboard
public
void
addFromString
(
double t
,
Map
<
String
,
String
>
values
)
array
Of
Link copied to clipboard
public
Array
<
Array
<
double
>
>
arrayOf
(
ToDoubleFunction
<
T
>
f
)
public
Array
<
Array
<
double
>
>
arrayOf
(
Array
<
double
>
timePoints
,
ToDoubleFunction
<
T
>
f
)
Returns a 2d-array from a set of time points and a conversion-to-double function
end
At
Link copied to clipboard
public
void
endAt
(
double end
)
fill
Link copied to clipboard
public
void
fill
<
R
>
(
Array
<
double
>
timePoints
,
Array
<
R
>
data
,
Function
<
T
,
R
>
f
)
for
Each
Link copied to clipboard
public
void
forEach
(
BiConsumer
<
Double
,
T
>
consumer
)
get
End
Link copied to clipboard
public
double
getEnd
(
)
get
Iterator
Link copied to clipboard
public
SignalCursor
<
Double
,
T
>
getIterator
(
boolean forward
)
get
Segments
Link copied to clipboard
public
abstract
TimeChain
<
T
,
V
>
getSegments
(
)
public
TimeChain
<
Double
,
T
>
getSegments
(
)
Returns the internal chain of segments.
get
Start
Link copied to clipboard
public
double
getStart
(
)
get
Time
Set
Link copied to clipboard
public
Set
<
Double
>
getTimeSet
(
)
get
Value
At
Link copied to clipboard
public
V
getValueAt
(
T
time
)
public
T
getValueAt
(
Double
time
)
get
Variable
Index
Link copied to clipboard
public
int
getVariableIndex
(
String
name
)
is
Empty
Link copied to clipboard
public
boolean
isEmpty
(
)
reduce
Link copied to clipboard
public
R
reduce
<
R
>
(
BiFunction
<
Pair
<
Double
,
T
>
,
R
,
R
>
reducer
,
R
init
)
refine
Link copied to clipboard
public
abstract
boolean
refine
(
TimeChain
<
T
,
V
>
updates
)
public
abstract
boolean
refine
(
Update
<
T
,
V
>
u
)
public
boolean
refine
(
TimeChain
<
Double
,
T
>
updates
)
public
boolean
refine
(
Update
<
Double
,
T
>
u
)
Performs an update of the internal representation of the signal, given the data available in the update.
select
Link copied to clipboard
public
abstract
TimeChain
<
T
,
V
>
select
(
T
from
,
T
to
)
public
TimeChain
<
Double
,
T
>
select
(
Double
from
,
Double
to
)
Temporal projection operation that selects a sub-part of the signal delimited by the time instants provided by the input parameters.
size
Link copied to clipboard
public
int
size
(
)
to
String
Link copied to clipboard
public
String
toString
(
)