public class Sequence extends java.lang.Object implements Encodable
InputSource
for use with the W3C
Action commands. In the spec, an action
is composed of a list of sequences, one per InputSource
. Each of these is composed of
Interaction
s, with the first item in each sequence being executed at the same time, then
the second, and so on, until all interactions in all sequences have been executed.Modifier and Type | Field and Description |
---|---|
private java.util.List<Encodable> |
actions |
private InputSource |
device |
Constructor and Description |
---|
Sequence(InputSource device,
int initialLength) |
Modifier and Type | Method and Description |
---|---|
Sequence |
addAction(Interaction action) |
java.util.Map<java.lang.String,java.lang.Object> |
encode() |
(package private) int |
size() |
java.util.Map<java.lang.String,java.lang.Object> |
toJson() |
private final java.util.List<Encodable> actions
private final InputSource device
public Sequence(InputSource device, int initialLength)
public Sequence addAction(Interaction action)
public java.util.Map<java.lang.String,java.lang.Object> encode()
public java.util.Map<java.lang.String,java.lang.Object> toJson()
int size()