Java Doc for Node_RuleVariable.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » reasoner » rulesys » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.reasoner.rulesys 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.graph.Node_Variable
   com.hp.hpl.jena.reasoner.rulesys.Node_RuleVariable

Node_RuleVariable
public class Node_RuleVariable extends Node_Variable (Code)
A variation on the normal Node_Variable which support for value bindings. Currently the forward rule system stores the values externally but requires variables to have an offset index in the rule environment vector. The variables can also suport prolog-like reference chains and trails but these are not yet used.

Note that this should not be used in a real Triple, in particular it should not end up in a Graph. It is only needed for the rule systems.


author:
   Dave Reynolds
version:
   $Revision: 1.20 $ on $Date: 2008/01/02 12:07:47 $

Inner Class :static class VarLabel

Field Summary
final public static  Node_RuleVariableWILD
    
protected  intindex
    
protected  booleanisRef
    
protected  Nodevalue
    

Constructor Summary
public  Node_RuleVariable(String label, int index)
    

Method Summary
public  Node_RuleVariablecloneNode()
     Clone the rule variable to allow multiple rule instaces to be active at the same time.
public  Nodederef()
     Dereference a variable by following the reference chain.
public  intgetIndex()
     Returns the variable's index in a binding vector.
public  NodegetRawBoundValue()
     Return the raw value to which this variable is bound (via LP binding) with no dereferencing.
public  booleanisUnbound()
     Test if the variable is unbound (in the brule sense).
public static  booleansameNodeAs(Node n, Node m)
     Compare two nodes, taking into account variable indices.
public  booleansameValueAs(Object o)
     Test that two nodes are semantically equivalent.
public  voidsetIndex(int index)
     Changes the variable's index.
public  voidsimpleBind(Node node)
     Binds a value to the brule version of the variable.
public  StringtoString()
    
public  voidunbind()
    

Field Detail
WILD
final public static Node_RuleVariable WILD(Code)
A static wildcard - like Node.ANY but tests equl to other Node_RuleVariables



index
protected int index(Code)
The offset of this variable in the Frule's binding table



isRef
protected boolean isRef(Code)
A flag to indicate that the value is reference (pointer to a var)



value
protected Node value(Code)
The value to which this variable is bound, can be another variable, itself (meaning unbound) or an actual value




Constructor Detail
Node_RuleVariable
public Node_RuleVariable(String label, int index)(Code)
Constructor
Parameters:
  label - the text label for the variable
Parameters:
  index - the calculated index of this variable in the rule




Method Detail
cloneNode
public Node_RuleVariable cloneNode()(Code)
Clone the rule variable to allow multiple rule instaces to be active at the same time.



deref
public Node deref()(Code)
Dereference a variable by following the reference chain. either a concrete node value or the last variablein the reference chain.



getIndex
public int getIndex()(Code)
Returns the variable's index in a binding vector. int



getRawBoundValue
public Node getRawBoundValue()(Code)
Return the raw value to which this variable is bound (via LP binding) with no dereferencing.



isUnbound
public boolean isUnbound()(Code)
Test if the variable is unbound (in the brule sense).



sameNodeAs
public static boolean sameNodeAs(Node n, Node m)(Code)
Compare two nodes, taking into account variable indices.



sameValueAs
public boolean sameValueAs(Object o)(Code)
Test that two nodes are semantically equivalent.



setIndex
public void setIndex(int index)(Code)
Changes the variable's index. This is used in LP rules which classify the variables into different sequences.



simpleBind
public void simpleBind(Node node)(Code)
Binds a value to the brule version of the variable. Does not follow any reference trail, assues we have already been derefenced.
Parameters:
  node - a concrete Node value or another Node_RuleVariableto alias to



toString
public String toString()(Code)
printable form



unbind
public void unbind()(Code)
Set the variable to be unbound (in the brule sense)



Methods inherited from com.hp.hpl.jena.graph.Node_Variable
public boolean equals(Object other)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public boolean isVariable()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public static Object variable(String name)(Code)(Java Doc)
public Object visitWith(NodeVisitor v)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.