-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTreeBranch.java
More file actions
38 lines (31 loc) · 910 Bytes
/
TreeBranch.java
File metadata and controls
38 lines (31 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
///////////////////////////////////////////////////////////////////////////////
// ALL STUDENTS COMPLETE THESE SECTIONS
// Main Class File: BuildAndTestDecisionTree
// File: TreeBranch.java
// Semester: Fall 2011
//
// Author: Erin Rasmussen ejrasmussen2@wisc.edu
// CS Login: rasmusse
// Lecturer's Name: Shavlik
//////////////////////////// 80 columns wide //////////////////////////////////
/**
* This class represents the binary options of each feature. Each TreeNode has
* two branches, unless it is a leaf.
*
* <p>Bugs: none known
*
* @author Erin Rasmussen
*/
public class TreeBranch {
private String option;
public TreeBranch(){}
public TreeBranch(String option){
this.option = option;
}
public String getOption(){
return this.option;
}
public void setOption(String option){
this.option = option;
}
}