-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrabber.java
More file actions
34 lines (31 loc) · 1.18 KB
/
Grabber.java
File metadata and controls
34 lines (31 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**************************************************************************************
* bias_tree
* Copyright (c) 2014-2017 National University of Colombia, https://github.com/remixlab
* @author Jean Pierre Charalambos, http://otrolado.info/
*
* All rights reserved. Library that eases the creation of interactive
* scenes, released under the terms of the GNU Public License v3.0
* which is available at http://www.gnu.org/licenses/gpl.html
**************************************************************************************/
package remixlab.bias;
/**
* Grabbers are means to attach a user-space object to all the
* {@link Agent}s (see
* {@link Agent#addGrabber(Grabber)}) through which it's going to be
* handled. For details, refer to the {@link Agent} documentation.
*/
public interface Grabber {
/**
* Defines the rules to set the grabber as an agent input-grabber.
*
* @see Agent#updateTrackedGrabber(BogusEvent)
* @see Agent#inputGrabber()
*/
boolean checkIfGrabsInput(BogusEvent event);
/**
* Defines how the grabber should react according to the given bogus-event.
*
* @see Agent#handle(BogusEvent)
*/
void performInteraction(BogusEvent event);
}