|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectStimulusTree
public class StimulusTree
| Constructor Summary | |
|---|---|
StimulusTree(java.lang.String filename)
Takes the name of stimulus data file and constructs the corresponding tree. |
|
| Method Summary | |
|---|---|
StimulusTree[] |
getChildren()
Gets the node's children. |
java.lang.String |
getLabel()
Gets the node's label. |
StimulusProject |
getProject()
Gets the node's project, if it exists. |
double |
getWeight()
|
boolean |
isLeafNode()
Is this node a leaf node? |
boolean |
isProjectNode()
Is this node a project node? |
static void |
main(java.lang.String[] args)
|
void |
printTree(java.lang.String tabs)
Print the tree. |
void |
setWeight(double w)
Set the node's weight. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StimulusTree(java.lang.String filename)
filename - the name of a file contains stimulus data| Method Detail |
|---|
public StimulusTree[] getChildren()
public java.lang.String getLabel()
public StimulusProject getProject()
public double getWeight()
public void setWeight(double w)
w - the new weightpublic boolean isProjectNode()
public boolean isLeafNode()
public void printTree(java.lang.String tabs)
public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||