A collection of InputProgram and OptionDescriptor. The subclasses have to implement startAsync(Callback, List, List) and startSync(List, List) methods. Each instance inside programs and options are represented by an integer (id) , respectively.
- See also
- ArrayList
-
HashMap
-
List
-
Map
◆ Handler()
it.unical.mat.embasp.base.Handler.Handler |
( |
| ) |
|
|
inline |
◆ addOption()
Add a new element inside options set.
- Parameters
-
- Returns
- the id associate to the new added OptionDescriptor instance
◆ addProgram()
int it.unical.mat.embasp.base.Handler.addProgram |
( |
final InputProgram |
program | ) |
|
|
inline |
Add a new element inside programs set.
- Parameters
-
program | is the InputProgram instance added to the collection. |
- Returns
- the id associate to the new added InputProgram instance.
◆ collect_options()
List<OptionDescriptor> it.unical.mat.embasp.base.Handler.collect_options |
( |
final List< Integer > |
option_index | ) |
|
|
inlineprotected |
◆ collect_programs()
List<InputProgram> it.unical.mat.embasp.base.Handler.collect_programs |
( |
final List< Integer > |
program_index | ) |
|
|
inlineprotected |
◆ getInputProgram()
InputProgram it.unical.mat.embasp.base.Handler.getInputProgram |
( |
final int |
key | ) |
|
|
inline |
◆ getOptionDescriptor()
OptionDescriptor it.unical.mat.embasp.base.Handler.getOptionDescriptor |
( |
final int |
key | ) |
|
|
inline |
◆ removeAll()
void it.unical.mat.embasp.base.Handler.removeAll |
( |
| ) |
|
|
inline |
Removes all of the elements from programs and options.Both of the collections will be empty after this method returns
◆ removeOption() [1/2]
void it.unical.mat.embasp.base.Handler.removeOption |
( |
final int |
option_id | ) |
|
|
inline |
Removes the element associate within the given id from options set.
- Parameters
-
option_id | the id associate within an element |
◆ removeOption() [2/2]
boolean it.unical.mat.embasp.base.Handler.removeOption |
( |
final OptionDescriptor |
o | ) |
|
|
inline |
Removes every occurrence of a specified OptionDescriptor element from options set.
- Parameters
-
- Returns
- true if one or more elements are removed , false otherwise
◆ removeProgram() [1/2]
boolean it.unical.mat.embasp.base.Handler.removeProgram |
( |
final InputProgram |
p | ) |
|
|
inline |
Removes every occurrence of a specified InputProgram element from programs set.
- Parameters
-
- Returns
- true if one or more elements are removed , false otherwise
◆ removeProgram() [2/2]
void it.unical.mat.embasp.base.Handler.removeProgram |
( |
final int |
program_id | ) |
|
|
inline |
Removes the element associate within the given id from programs set.
- Parameters
-
program_id | the id associate within an element |
◆ startAsync() [1/2]
void it.unical.mat.embasp.base.Handler.startAsync |
( |
final Callback |
c | ) |
|
|
inline |
◆ startAsync() [2/2]
void it.unical.mat.embasp.base.Handler.startAsync |
( |
final Callback |
c, |
|
|
final List< Integer > |
program_index, |
|
|
final List< Integer > |
option_index |
|
) |
| |
|
inline |
◆ startSync() [1/2]
Output it.unical.mat.embasp.base.Handler.startSync |
( |
| ) |
|
|
inline |
- See also
- #startSync(List, List)
◆ startSync() [2/2]
Output it.unical.mat.embasp.base.Handler.startSync |
( |
final List< Integer > |
program_index, |
|
|
final List< Integer > |
option_index |
|
) |
| |
|
inline |
◆ options
◆ programs
Map<Integer, InputProgram> it.unical.mat.embasp.base.Handler.programs |
|
protected |
The documentation for this class was generated from the following file: