FileDocCategorySizeDatePackage
ATreeNode.javaAPI DocJava Card787Wed Mar 22 21:07:24 GMT 2006com.sun.javacard.samples.odSample.packageA

ATreeNode

public class ATreeNode extends Object
Class represents nodes of a binary tree.

(Omit source code)

Fields Summary
short
memUsage
ATreeNode
left
ATreeNode
right
Constructors Summary
public ATreeNode(short currDepth, short maxDepth)
Constructor. Makes children if depth of tree not reached maxdepth yet


	            	 
      
    memUsage=JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);
    if(currDepth<maxDepth){
      left=new ATreeNode((short)(currDepth+1),(short)maxDepth);
      right=new ATreeNode((short)(currDepth+1),(short)maxDepth);
    }
  
Methods Summary