blob: a63361d1d202b0467d7d174f6b0f8bf15dbfca5e (
plain) (
blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.yst.libmlr.converter.entity;
public class InternalNode extends TreeNode {
private String feature;
private String op;
private String value;
private TreeNode left; // true
private TreeNode right; // false
public InternalNode(String i, String c, String f, String v, TreeNode lf, TreeNode rt) {
super(i, c);
feature = f;
value = v;
left = lf;
right = rt;
}
public String getFeature() {
return feature;
}
public void setFeature(String feature) {
this.feature = feature;
}
public String getOp() {
return op;
}
public void setOp(String op) {
this.op = op;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public TreeNode getLeftNode() {
return left;
}
public void setLeftNode(TreeNode left) {
this.left = left;
}
public TreeNode getRightNode() {
return right;
}
public void setRightNode(TreeNode right) {
this.right = right;
}
}
|