mathmaker  0.6(alpha)
Public Member Functions | Public Attributes
sheet.exercise.X_Structure.X_Structure Class Reference

Mother class of all exercises objects. More...

List of all members.

Public Member Functions

def __init__
 /!\ Must be redefined.
def to_str
 Writes the text of the exercise|answer to the output.

Public Attributes

 machine
 questions_list
 options
 x_kind
 x_subkind
 start_number
 q_nb
 x_layout_unit
 x_layout

Detailed Description

Mother class of all exercises objects.

Not instanciable. This class suggests two default methods which are also in the exercise.Model class : write_text and write_answer. In a new exercise, they can either be kept untouched (then it would be wise to delete them from the new exercise) or rewritten.

Definition at line 36 of file X_Structure.py.


Constructor & Destructor Documentation

def sheet.exercise.X_Structure.X_Structure.__init__ (   self,
  embedded_machine,
  x_kind,
  AVAILABLE_X_KIND_VALUES,
  X_LAYOUTS,
  X_LAYOUT_UNIT,
  options 
)

/!\ Must be redefined.

Constructor.

Warning:
Exception NotInstanciableObject.
Parameters:
embedded_machineThe machine to be used
**optionsAny options

Definition at line 48 of file X_Structure.py.

References sheet.AlgebraBalance_01.AlgebraBalance_01.derived, sheet.AlgebraFactorization_01.AlgebraFactorization_01.derived, sheet.FractionSimplification.FractionSimplification.derived, sheet.FractionsSum.FractionsSum.derived, sheet.MentalCalculation.MentalCalculation.derived, sheet.AlgebraFactorization_02.AlgebraFactorization_02.derived, sheet.AlgebraFactorization_03.AlgebraFactorization_03.derived, sheet.AlgebraMiniTest0.AlgebraMiniTest0.derived, sheet.EquationsShortTest.EquationsShortTest.derived, sheet.AlgebraExpressionExpansion.AlgebraExpressionExpansion.derived, sheet.EquationsTest.EquationsTest.derived, sheet.FractionsProductAndQuotient.FractionsProductAndQuotient.derived, sheet.PythagoreanTheoremShortTest.PythagoreanTheoremShortTest.derived, sheet.AlgebraExpressionReduction.AlgebraExpressionReduction.derived, sheet.AlgebraShortTest.AlgebraShortTest.derived, sheet.AlgebraTest.AlgebraTest.derived, sheet.AlgebraTest2.AlgebraTest2.derived, sheet.EquationsClassic.EquationsClassic.derived, sheet.EquationsHarder.EquationsHarder.derived, sheet.AlgebraBinomialIdentityExpansion.AlgebraBinomialIdentityExpansion.derived, sheet.EquationsBasic.EquationsBasic.derived, sheet.ConverseAndContrapositiveOfPythagoreanTheoremShortTest.ConverseAndContrapositiveOfPythagoreanTheoremShortTest.derived, sheet.exercise.question.Q_Model.Q_Model.derived, sheet.exercise.question.Q_Equation.Q_Equation.derived, sheet.exercise.X_Calculation.X_Calculation.derived, sheet.exercise.question.Q_RightTriangle.Q_RightTriangle.derived, sheet.AlgebraMiniTest1.AlgebraMiniTest1.derived, sheet.S_Model.S_Model.derived, sheet.exercise.X_RightTriangle.X_RightTriangle.derived, sheet.exercise.X_AlgebraExpressionReduction.X_AlgebraExpressionReduction.derived, sheet.exercise.question.Q_MentalCalculation.Q_MentalCalculation.derived, sheet.exercise.question.Q_AlgebraExpressionExpansion.Q_AlgebraExpressionExpansion.derived, sheet.exercise.X_MentalCalculation.X_MentalCalculation.derived, sheet.exercise.X_Model.X_Model.derived, sheet.exercise.X_AlgebraExpressionExpansion.X_AlgebraExpressionExpansion.derived, sheet.exercise.question.Q_AlgebraExpressionReduction.Q_AlgebraExpressionReduction.derived, sheet.exercise.question.Q_Calculation.Q_Calculation.derived, sheet.exercise.X_Factorization.X_Factorization.derived, sheet.exercise.X_Equation.X_Equation.derived, sheet.exercise.question.Q_Factorization.Q_Factorization.derived, sheet.exercise.question.Q_Structure.Q_Structure.machine, sheet.exercise.X_Structure.X_Structure.machine, sheet.exercise.question.Q_Structure.Q_Structure.options, sheet.exercise.X_Structure.X_Structure.options, sheet.exercise.X_Structure.X_Structure.q_nb, sheet.exercise.X_Structure.X_Structure.questions_list, sheet.exercise.X_Structure.X_Structure.start_number, sheet.exercise.X_Structure.X_Structure.x_kind, sheet.exercise.X_Calculation.X_Calculation.x_kind, sheet.exercise.X_AlgebraExpressionReduction.X_AlgebraExpressionReduction.x_kind, sheet.exercise.X_RightTriangle.X_RightTriangle.x_kind, sheet.exercise.X_AlgebraExpressionExpansion.X_AlgebraExpressionExpansion.x_kind, sheet.exercise.X_Factorization.X_Factorization.x_kind, sheet.exercise.X_Equation.X_Equation.x_kind, sheet.exercise.X_Structure.X_Structure.x_layout, sheet.exercise.X_Structure.X_Structure.x_layout_unit, sheet.exercise.X_Structure.X_Structure.x_subkind, sheet.exercise.X_Calculation.X_Calculation.x_subkind, sheet.exercise.X_AlgebraExpressionReduction.X_AlgebraExpressionReduction.x_subkind, sheet.exercise.X_RightTriangle.X_RightTriangle.x_subkind, sheet.exercise.X_AlgebraExpressionExpansion.X_AlgebraExpressionExpansion.x_subkind, sheet.exercise.X_Factorization.X_Factorization.x_subkind, and sheet.exercise.X_Equation.X_Equation.x_subkind.


Member Function Documentation

def sheet.exercise.X_Structure.X_Structure.to_str (   self,
  ex_or_answers 
)

Writes the text of the exercise|answer to the output.

Definition at line 134 of file X_Structure.py.

References sheet.exercise.question.Q_Structure.Q_Structure.machine, sheet.exercise.X_Structure.X_Structure.machine, sheet.exercise.X_Structure.X_Structure.questions_list, sheet.AlgebraFactorization_01.AlgebraFactorization_01.text, sheet.FractionsSum.FractionsSum.text, sheet.MentalCalculation.MentalCalculation.text, sheet.AlgebraBalance_01.AlgebraBalance_01.text, sheet.AlgebraFactorization_02.AlgebraFactorization_02.text, sheet.AlgebraFactorization_03.AlgebraFactorization_03.text, sheet.FractionSimplification.FractionSimplification.text, sheet.EquationsShortTest.EquationsShortTest.text, sheet.AlgebraMiniTest0.AlgebraMiniTest0.text, sheet.AlgebraExpressionExpansion.AlgebraExpressionExpansion.text, sheet.FractionsProductAndQuotient.FractionsProductAndQuotient.text, sheet.EquationsClassic.EquationsClassic.text, sheet.PythagoreanTheoremShortTest.PythagoreanTheoremShortTest.text, sheet.AlgebraTest2.AlgebraTest2.text, sheet.EquationsTest.EquationsTest.text, sheet.AlgebraShortTest.AlgebraShortTest.text, sheet.AlgebraTest.AlgebraTest.text, sheet.AlgebraExpressionReduction.AlgebraExpressionReduction.text, sheet.EquationsBasic.EquationsBasic.text, sheet.EquationsHarder.EquationsHarder.text, sheet.AlgebraBinomialIdentityExpansion.AlgebraBinomialIdentityExpansion.text, sheet.ConverseAndContrapositiveOfPythagoreanTheoremShortTest.ConverseAndContrapositiveOfPythagoreanTheoremShortTest.text, sheet.exercise.X_Calculation.X_Calculation.text, sheet.AlgebraMiniTest1.AlgebraMiniTest1.text, sheet.S_Model.S_Model.text, sheet.exercise.X_RightTriangle.X_RightTriangle.text, sheet.exercise.X_AlgebraExpressionReduction.X_AlgebraExpressionReduction.text, sheet.exercise.X_MentalCalculation.X_MentalCalculation.text, sheet.exercise.X_Model.X_Model.text, sheet.exercise.X_AlgebraExpressionExpansion.X_AlgebraExpressionExpansion.text, sheet.exercise.X_Factorization.X_Factorization.text, sheet.exercise.X_Equation.X_Equation.text, and sheet.exercise.X_Structure.X_Structure.x_layout.


The documentation for this class was generated from the following file: