protected class OpenSchemaPlanner.Node extends Object
Modifier and Type | Field and Description |
---|---|
String |
name
Name, for debugging purposes
|
List<OpenSchemaPlanner.Node> |
outgoing
Nodes that can be accessed from the current one.
|
OpenSchemaPlanner.Predicate |
predicate
Predicate held by this node (if any).
|
int |
type
Type of the node (EMPTY_NODE, PREDICATE_NODE, etc.).
|
Map<String,String> |
vars
Mapping from global-to-local variable names (if any).
|
Constructor and Description |
---|
Node()
Create an EMPTY_NODE.
|
Node(int type)
Create a node of a given type.
|
Node(int type,
String name)
Create a node of a given type.
|
Node(OpenSchemaPlanner.Predicate predicate,
Map<String,String> vars)
Create a PREDICATE_NODE.
|
Node(String name)
Create an EMPTY_NODE.
|
Modifier and Type | Method and Description |
---|---|
List<OpenSchemaPlanner.Node> |
getOutgoing()
Access all nodes accessable from this node.
|
OpenSchemaPlanner.Predicate |
getPredicate()
Access the predicate referenced by this node (if any).
|
int |
getType()
Node type accessor.
|
Map<String,String> |
getVars()
Access the global-to-local variable names mapping (if any).
|
boolean |
isAggrBoundary()
Check whether the type of the node is AGGRBOUNDARY_NODE.
|
boolean |
isParBoundary()
Check whether the type of the node is PARBOUNDARY_NODE.
|
boolean |
isPredicate()
Check whether the type of the node is PREDICATE_NODE.
|
void |
linkTo(OpenSchemaPlanner.Node destination)
Add a link from the current node to the destination node.
|
String |
toString()
String rendering (for debugging purposes).
|
public int type
public String name
public List<OpenSchemaPlanner.Node> outgoing
public OpenSchemaPlanner.Predicate predicate
public Node()
public Node(String name)
public Node(int type)
public Node(int type, String name)
public Node(OpenSchemaPlanner.Predicate predicate, Map<String,String> vars)
public void linkTo(OpenSchemaPlanner.Node destination)
public int getType()
public boolean isPredicate()
public boolean isAggrBoundary()
public boolean isParBoundary()
public List<OpenSchemaPlanner.Node> getOutgoing()
public Map<String,String> getVars()
public OpenSchemaPlanner.Predicate getPredicate()
Copyright © 2015 Pablo Duboue. All rights reserved.