public class Arith extends AutoContentProvider
Arith
is the first implementation of AutoContentProvider
.
It is based on the code of ARITH2.DLL, made originally for Clic 3.0. It provides
activities with randomly generated menthal arithmetics operations. The operations
can be additions, substractions, multiplications or divides. The unknown can be the
result of the operation or any of the two operators (in the form A # B = ?, A # ? = C or ? # B = C), or
also the operation itself (like A ? B = C).
Activities must implement ActiveBagContentKit.Compatible
in order to use Arith
.Modifier and Type | Class and Description |
---|---|
protected class |
Arith.Num |
protected class |
Arith.Operacio |
Modifier and Type | Field and Description |
---|---|
protected static String |
A |
protected static int |
ABX |
protected static int |
AGB |
protected static String |
ASCENDING |
protected static int |
AXBC |
protected static int |
AXC |
protected static String |
B |
protected static int |
BGA |
protected static int |
CAXB |
protected static String |
CONDITION |
protected static String |
DESCENDING |
protected static DecimalFormat[] |
DF |
protected static int |
DIV |
protected static String |
DIVIDE |
protected static String |
DUPLICATES |
protected static String |
FIRST |
protected static String |
FIRST_BIG |
protected static String |
FROM |
protected static String |
ID |
protected static int |
INDIF |
protected static String |
INVERSE |
protected static String |
LAST |
protected static String |
LAST_BIG |
protected static String |
MINUS |
protected static int |
MULT |
protected static String |
MULTIPLY |
protected static int |
NMAXLOOPS |
protected static int |
NOPERACIONS |
protected static int |
NOSORT |
protected static String |
NOT_CARRY |
protected static int |
NTIPUSEX |
protected static String |
OPERAND |
protected static String |
OPERATIONS |
protected static String[] |
OPSTR |
protected static String |
ORDER |
protected static String |
PLUS |
protected static int |
REST |
protected static String |
RESULT |
protected static int |
SORTASC |
protected static int |
SORTDESC |
protected static int |
SUM |
protected static String |
TO |
protected static String |
UNKNOWN |
protected static int |
WILDCARD_DF |
protected static int |
XBC |
BASE_CLASS, BASE_CLASS_TAG, ELEMENT_NAME
Constructor and Description |
---|
Arith()
Creates new Arith
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkClient(Class cl) |
protected boolean |
generateContent(int nRows,
int nCols,
ActiveBagContent[] content,
boolean useIds,
ResourceBridge rb) |
boolean |
generateContent(Object kit,
ResourceBridge rb) |
DecimalFormat |
getDF(int index) |
Element |
getJDomElement() |
boolean |
setClic3Properties(byte[] ops) |
void |
setProperties(Element e,
Object aux) |
checkClient, getAutoContentProvider, getAutoContentProvider, getAutoContentProviderClass, getEditor, getShortClassName, init, init, innerListReferences, listReferences
protected static final int NMAXLOOPS
protected static final int NOSORT
protected static final int SORTASC
protected static final int SORTDESC
protected static final int SUM
protected static final int REST
protected static final int MULT
protected static final int DIV
protected static final int NOPERACIONS
protected static final String[] OPSTR
protected static final int ABX
protected static final int AXC
protected static final int XBC
protected static final int AXBC
protected static final int CAXB
protected static final int NTIPUSEX
protected static final int INDIF
protected static final int AGB
protected static final int BGA
protected static final String ID
protected static final String A
protected static final String B
protected static final String OPERATIONS
protected static final String PLUS
protected static final String MINUS
protected static final String MULTIPLY
protected static final String DIVIDE
protected static final String UNKNOWN
protected static final String RESULT
protected static final String FIRST
protected static final String LAST
protected static final String OPERAND
protected static final String INVERSE
protected static final String FROM
protected static final String TO
protected static final String NOT_CARRY
protected static final String DUPLICATES
protected static final String ORDER
protected static final String ASCENDING
protected static final String DESCENDING
protected static final String CONDITION
protected static final String FIRST_BIG
protected static final String LAST_BIG
protected static DecimalFormat[] DF
protected static final int WILDCARD_DF
public DecimalFormat getDF(int index)
public Element getJDomElement()
getJDomElement
in interface Domable
getJDomElement
in class AutoContentProvider
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
setProperties
in class AutoContentProvider
Exception
public boolean setClic3Properties(byte[] ops)
setClic3Properties
in class AutoContentProvider
public boolean generateContent(Object kit, ResourceBridge rb)
generateContent
in class AutoContentProvider
protected boolean generateContent(int nRows, int nCols, ActiveBagContent[] content, boolean useIds, ResourceBridge rb)
public static boolean checkClient(Class cl)
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.