apps.threedbuttonsexperiment.calculator
Class Calculator

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Node
          extended by apps.threedbuttonsexperiment.calculator.Calculator
All Implemented Interfaces:
com.jme.util.export.Savable, java.io.Serializable
Direct Known Subclasses:
ColorHighlightedCalculator, NormalCalculator, ThreeDCalculator

public abstract class Calculator
extends com.jme.scene.Node

The Class Calculator.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
com.jme.scene.Spatial.CullHint, com.jme.scene.Spatial.LightCombineMode, com.jme.scene.Spatial.NormalsMode, com.jme.scene.Spatial.TextureCombineMode
 
Field Summary
 
Fields inherited from class com.jme.scene.Spatial
LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, queueDistance
 
Constructor Summary
Calculator(java.lang.String name, TextLabel targetNumberLabel, DateTextWritter logWritter)
          Instantiates a new calculator.
 
Method Summary
 void addTaskListener(TaskListener l)
          Adds the task listener.
 int getCurrentTrailNumber()
          Gets the current trail number.
 int getTrailCount()
          Gets the trail count.
 void resetTask()
          Reset task.
 void setCurrentTrailNumber(int currentTrailNumber)
          Sets the current trail number.
 void setTrailCount(int trailCount)
          Sets the trail count.
 void startNewTrail()
          Start new trail.
 
Methods inherited from class com.jme.scene.Node
attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, read, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldData, updateWorldVectors, write
 
Methods inherited from class com.jme.scene.Spatial
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateGeometricState, updateRenderState, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Constructor Detail

Calculator

public Calculator(java.lang.String name,
                  TextLabel targetNumberLabel,
                  DateTextWritter logWritter)
Instantiates a new calculator.

Parameters:
name - the name
targetNumberLabel - the target number label
logWritter - the log writter
Method Detail

addTaskListener

public void addTaskListener(TaskListener l)
Adds the task listener.

Parameters:
l - the l

getCurrentTrailNumber

public int getCurrentTrailNumber()
Gets the current trail number.

Returns:
the current trail number

getTrailCount

public int getTrailCount()
Gets the trail count.

Returns:
the trail count

resetTask

public void resetTask()
Reset task.


setCurrentTrailNumber

public void setCurrentTrailNumber(int currentTrailNumber)
Sets the current trail number.

Parameters:
currentTrailNumber - the new current trail number

setTrailCount

public void setTrailCount(int trailCount)
Sets the trail count.

Parameters:
trailCount - the new trail count

startNewTrail

public void startNewTrail()
Start new trail.