public class ConditionalJumpInfo extends JumpInfo implements Cloneable
JumpInfo
is used in
ActivitySequenceJump
objects to decide the jump to be
taked (or the action to be performed) based on the results obtained by the user when
playing JClic activities. In addition to the standard JumpInfo fields and methods, this
class have two public members where to store a score and time thresholds. The exact
meaning of this members will depend on the type of this ConditionalJumpInfo
(ActivitySequenceJump.upperJump
or ActivitySequenceJump.lowerJump
).Modifier and Type | Field and Description |
---|---|
int |
threshold |
static String |
THRESHOLD |
int |
time |
static String |
TIME |
Constructor and Description |
---|
ConditionalJumpInfo(int action,
String sequence,
int threshold)
Creates new ConditionalJumpInfo
|
ConditionalJumpInfo(int action,
String sequence,
int threshold,
int time) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static ConditionalJumpInfo |
getConditionalJumpInfo(Element e) |
Element |
getJDomElement() |
void |
setProperties(Element e,
Object aux) |
listReferences
public int threshold
public int time
public static final String TIME
public static final String THRESHOLD
public ConditionalJumpInfo(int action, String sequence, int threshold)
public ConditionalJumpInfo(int action, String sequence, int threshold, int time)
public Element getJDomElement()
getJDomElement
in interface Domable
getJDomElement
in class JumpInfo
public static ConditionalJumpInfo getConditionalJumpInfo(Element e) throws Exception
Exception
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
setProperties
in class JumpInfo
Exception
public Object clone() throws CloneNotSupportedException
clone
in class JumpInfo
CloneNotSupportedException
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.