T
tolu45
Hi,
I have some problems with my java code. I Have 2 class SelGraphNode and
SelGraph. Both have constructors. The problems is when i instantiate
Node in SeleGraph,I get an error saying:
Can't find symbol
Symbol: Constructor SelGraphNode
Find Below the code for the 2 constructors:
for SelGraph:
public class SelGraph {
SelGraphNode nodes = new SelGraphNode();
//SelGrapNode node1 = new SelGrapNode();
ArrayList<SelGraphEdge> edgesList = new ArrayList<SelGraphEdge>();
ArrayList<SelGraphNode> nodesList = new ArrayList<SelGraphNode>();
//Vector edges = new Vector();
Vector table_list = new Vector();
Vector condition_list = new Vector();
Vector join_list = new Vector();
/** Creates a new instance of SelGraph */
public SelGraph(SelGraphNode N,SelGraphEdge E) {
nodes = N;
}
complete code for SelGraphNode() :
public class SelGraphNode {
public String table_name = new String();
public Vector condition = new Vector();
public boolean node_flag;
public String primary_key = new String();
/** Creates a new instance of SelGrapNode */
public SelGraphNode(String table_name, Vector condition, boolean
node_flag, String primary_key) {
this.table_name = table_name;
this.condition = condition;
this.node_flag = node_flag;
this.primary_key = primary_key;
}
public String getTableName () { return table_name; }
public Vector getCondition () { return condition; }
public boolean getNodeFlag () { return node_flag;}
public String getPrimaryKey () { return primary_key; }
}
Your help will be appreciated
I have some problems with my java code. I Have 2 class SelGraphNode and
SelGraph. Both have constructors. The problems is when i instantiate
Node in SeleGraph,I get an error saying:
Can't find symbol
Symbol: Constructor SelGraphNode
Find Below the code for the 2 constructors:
for SelGraph:
public class SelGraph {
SelGraphNode nodes = new SelGraphNode();
//SelGrapNode node1 = new SelGrapNode();
ArrayList<SelGraphEdge> edgesList = new ArrayList<SelGraphEdge>();
ArrayList<SelGraphNode> nodesList = new ArrayList<SelGraphNode>();
//Vector edges = new Vector();
Vector table_list = new Vector();
Vector condition_list = new Vector();
Vector join_list = new Vector();
/** Creates a new instance of SelGraph */
public SelGraph(SelGraphNode N,SelGraphEdge E) {
nodes = N;
}
complete code for SelGraphNode() :
public class SelGraphNode {
public String table_name = new String();
public Vector condition = new Vector();
public boolean node_flag;
public String primary_key = new String();
/** Creates a new instance of SelGrapNode */
public SelGraphNode(String table_name, Vector condition, boolean
node_flag, String primary_key) {
this.table_name = table_name;
this.condition = condition;
this.node_flag = node_flag;
this.primary_key = primary_key;
}
public String getTableName () { return table_name; }
public Vector getCondition () { return condition; }
public boolean getNodeFlag () { return node_flag;}
public String getPrimaryKey () { return primary_key; }
}
Your help will be appreciated