Java Doc for Proof.java in  » Testing » KeY » de » uka » ilkd » key » proof » 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 » Testing » KeY » de.uka.ilkd.key.proof 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.uka.ilkd.key.proof.Proof

Proof
public class Proof implements Named(Code)
A proof is represented as a tree whose nodes are created by applying rules on the current (open) goals and dividing them up into several new subgoals. To distinguish between open goals (the ones we are working on) and closed goals or inner nodes we restrict the use of the word goal to open goals which are a subset of the proof tree's leaves. This proof class represents a proof and encapsulates its tree structure. The Goal class represents a goal with all needed extra information, and methods to apply rules. Furthermore it offers services that deliver the open goals, namespaces and several other informations about the current state of the proof.


Field Summary
public  VectorkeyVersionLog
     when load and save a proof with different versions of key this vector fills up with Strings containing the prcs versions.
public  VectoruserLog
     when different users load and save a proof this vector fills up with Strings containing the user names.

Constructor Summary
public  Proof(Services services)
    
public  Proof(String name, Services services)
    
public  Proof(String name, Term problem, String header, TacletIndex rules, BuiltInRuleIndex builtInRules, Services services, ProofSettings settings)
    
public  Proof(String name, Sequent sequent, String header, TacletIndex rules, BuiltInRuleIndex builtInRules, Services services, ProofSettings settings)
    
public  Proof(Proof p)
    
public  Proof(String name, Term problem, String header, TacletIndex rules, BuiltInRuleIndex builtInRules, Services services)
    

Method Summary
public  AbbrevMapabbreviations()
    
public  voidadd(Goal goal)
    
public  voidadd(ListOfGoal goals)
    
public synchronized  voidaddProofTreeListener(ProofTreeListener listener)
    
public  voidaddRuleSource(RuleSource src)
    
public  voidcloseGoal(Goal p_goal, Constraint p_c)
     Add the given constraint to the closure constraint of the given goal, i.e.
public  booleanclosed()
     Return whether the remaining goals can be closed, i.e.
public synchronized  booleancontainsProofTreeListener(ProofTreeListener listener)
    
public  intcountBranches()
    
public  intcountNodes()
    
public  ProofEnvironmentenv()
    
public  booleanfind(Node node)
    
protected  voidfireProofClosed()
     fires the event that the proof has closed.
protected  voidfireProofExpanded(Node node)
    
protected  voidfireProofGoalRemoved(Goal goal)
    
protected  voidfireProofGoalsAdded(ListOfGoal goals)
    
protected  voidfireProofGoalsAdded(Goal goal)
    
protected  voidfireProofGoalsChanged()
    
protected  voidfireProofPruned(Node node, Node removedNode)
    
protected  voidfireProofStructureChanged()
    
public  StrategygetActiveStrategy()
    
public  BasicTaskgetBasicTask()
    
public  GoalgetGoal(Node node)
    
public  JavaInfogetJavaInfo()
    
public  JavaModelgetJavaModel()
    
public  MetavariableDeliverergetMetavariableDeliverer()
    
public  NamespaceSetgetNamespaces()
    
public  ServicesgetServices()
    
public  ProofSettingsgetSettings()
    
public  ListOfGoalgetSubtreeGoals(Node node)
    
public  ConstraintTableModelgetUserConstraint()
    
public  Stringheader()
    
public  booleanisGoal(Node node)
    
public  ProofCorrectnessMgtmgt()
    
public  Namename()
     returns the name of the proof.
public  ListOfGoalopenGoals()
    
public  voidremove(Goal goal)
     removes the given goal from the list of open goals.
protected  voidremoveClosedSubtree()
    
public synchronized  voidremoveProofTreeListener(ProofTreeListener listener)
    
public  voidreplace(Goal oldGoal, ListOfGoal newGoals)
    
public  Noderoot()
    
public  voidsetActiveStrategy(Strategy activeStrategy)
    
public  booleansetBack(Goal goal)
     returns true iff sets back to the step that created the given goal.
public  booleansetBack(Node node)
     Prunes away the subtree beneath node.
public  voidsetBasicTask(BasicTask t)
    
public  voidsetNamespaces(NamespaceSet ns)
    
public  voidsetProofEnv(ProofEnvironment env)
    
public  voidsetRoot(Node root)
    
public  voidsetRuleAppIndexToAutoMode()
     Currently the rule app index can either operate in interactive mode (and contain applications of all existing taclets) or in automatic mode (and only contain a restricted set of taclets that can possibly be applied automated).
public  voidsetRuleAppIndexToInteractiveMode()
    
public  voidsetSettings(ProofSettings newSettings)
    
public  voidsetSimplifier(UpdateSimplifier upd_simplifier)
    
public  UpdateSimplifiersimplifier()
    
public  Stringstatistics()
    
public  voidsubtreeCompletelyClosed(Node p_node)
    
public  StringtoString()
    
public  voidupdateProof()
    

Field Detail
keyVersionLog
public Vector keyVersionLog(Code)
when load and save a proof with different versions of key this vector fills up with Strings containing the prcs versions.



userLog
public Vector userLog(Code)
when different users load and save a proof this vector fills up with Strings containing the user names.




Constructor Detail
Proof
public Proof(Services services)(Code)
constructs a new empty proof



Proof
public Proof(String name, Services services)(Code)
constructs a new empty proof with name



Proof
public Proof(String name, Term problem, String header, TacletIndex rules, BuiltInRuleIndex builtInRules, Services services, ProofSettings settings)(Code)



Proof
public Proof(String name, Sequent sequent, String header, TacletIndex rules, BuiltInRuleIndex builtInRules, Services services, ProofSettings settings)(Code)



Proof
public Proof(Proof p)(Code)
copy constructor



Proof
public Proof(String name, Term problem, String header, TacletIndex rules, BuiltInRuleIndex builtInRules, Services services)(Code)




Method Detail
abbreviations
public AbbrevMap abbreviations()(Code)



add
public void add(Goal goal)(Code)
adds a new goal to the list of goals
Parameters:
  goal - the Goal to be added



add
public void add(ListOfGoal goals)(Code)
adds a list with new goals to the list of open goals
Parameters:
  goals - the ListOfGoal to be prepended



addProofTreeListener
public synchronized void addProofTreeListener(ProofTreeListener listener)(Code)
adds a listener to the proof
Parameters:
  listener - the ProofTreeListener to be added



addRuleSource
public void addRuleSource(RuleSource src)(Code)



closeGoal
public void closeGoal(Goal p_goal, Constraint p_c)(Code)
Add the given constraint to the closure constraint of the given goal, i.e. the given goal is closed if p_c is satisfied.



closed
public boolean closed()(Code)
Return whether the remaining goals can be closed, i.e. whether the conjunction of the constraints of the open goals is satisfiable. In this case all remaining open goals are removed.



containsProofTreeListener
public synchronized boolean containsProofTreeListener(ProofTreeListener listener)(Code)



countBranches
public int countBranches()(Code)
retrieves number of branches



countNodes
public int countNodes()(Code)
retrieves number of nodes



env
public ProofEnvironment env()(Code)



find
public boolean find(Node node)(Code)
returns true iff the given node is found in the proof tree
Parameters:
  node - the Node to search for true iff the given node is found in the proof tree



fireProofClosed
protected void fireProofClosed()(Code)
fires the event that the proof has closed. This event fired instead of the proofGoalRemoved event when the last goal in list is removed.



fireProofExpanded
protected void fireProofExpanded(Node node)(Code)
fires the event that the proof has been expanded at the given node



fireProofGoalRemoved
protected void fireProofGoalRemoved(Goal goal)(Code)
fires the event that a goal has been removed from the list of goals



fireProofGoalsAdded
protected void fireProofGoalsAdded(ListOfGoal goals)(Code)
fires the event that new goals have been added to the list of goals



fireProofGoalsAdded
protected void fireProofGoalsAdded(Goal goal)(Code)
fires the event that new goals have been added to the list of goals



fireProofGoalsChanged
protected void fireProofGoalsChanged()(Code)
fires the event that the proof has been restructured



fireProofPruned
protected void fireProofPruned(Node node, Node removedNode)(Code)
fires the event that the proof has been pruned at the given node



fireProofStructureChanged
protected void fireProofStructureChanged()(Code)
fires the event that the proof has been restructured



getActiveStrategy
public Strategy getActiveStrategy()(Code)



getBasicTask
public BasicTask getBasicTask()(Code)



getGoal
public Goal getGoal(Node node)(Code)
returns the goal that belongs to the given node or null if the node is an inner one the goal that belongs to the given node or null if thenode is an inner one



getJavaInfo
public JavaInfo getJavaInfo()(Code)
returns the JavaInfo with the java type information



getJavaModel
public JavaModel getJavaModel()(Code)



getMetavariableDeliverer
public MetavariableDeliverer getMetavariableDeliverer()(Code)
Deliverer of new metavariables (with unique names)



getNamespaces
public NamespaceSet getNamespaces()(Code)
returns a collection of the namespaces valid for this proof



getServices
public Services getServices()(Code)
returns the Services with the java service classes



getSettings
public ProofSettings getSettings()(Code)



getSubtreeGoals
public ListOfGoal getSubtreeGoals(Node node)(Code)
returns the list of goals of the subtree starting with node
Parameters:
  node - the Node where to start from the list of goals of the subtree starting with node



getUserConstraint
public ConstraintTableModel getUserConstraint()(Code)
returns the user constraint (table model) the user constraint



header
public String header()(Code)



isGoal
public boolean isGoal(Node node)(Code)
returns true if the given node is part of a Goal true if the given node is part of a Goal



mgt
public ProofCorrectnessMgt mgt()(Code)



name
public Name name()(Code)
returns the name of the proof. Describes in short what has to be proved. the name of the proof



openGoals
public ListOfGoal openGoals()(Code)
returns the list of open goals list with the open goals



remove
public void remove(Goal goal)(Code)
removes the given goal from the list of open goals. Take care removing the last goal will fire the proofClosed event
Parameters:
  goal - the Goal to be removed



removeClosedSubtree
protected void removeClosedSubtree()(Code)
Use this information to remove the goals of the closed subtree



removeProofTreeListener
public synchronized void removeProofTreeListener(ProofTreeListener listener)(Code)
removes a listener from the proof
Parameters:
  listener - the ProofTreeListener to be removed



replace
public void replace(Goal oldGoal, ListOfGoal newGoals)(Code)
removes the given goal and adds the new goals in list
Parameters:
  oldGoal - the old goal that has to be removed from list
Parameters:
  newGoals - the ListOfGoal with the new goals that wereresult of a rule application on goal



root
public Node root()(Code)
returns the root node of the proof



setActiveStrategy
public void setActiveStrategy(Strategy activeStrategy)(Code)



setBack
public boolean setBack(Goal goal)(Code)
returns true iff sets back to the step that created the given goal. If the undo operation was succesful true is returned.
Parameters:
  goal - the Goal desribing the location where to set back true iff undo operation was succesfull.



setBack
public boolean setBack(Node node)(Code)
Prunes away the subtree beneath node. node is going to be the last node on its branch.
Parameters:
  node - the node desribing the location where to set back true iff undo operation was succesfull.



setBasicTask
public void setBasicTask(BasicTask t)(Code)



setNamespaces
public void setNamespaces(NamespaceSet ns)(Code)
sets the variable, function, sort, heuristics namespaces



setProofEnv
public void setProofEnv(ProofEnvironment env)(Code)



setRoot
public void setRoot(Node root)(Code)
sets the root of the proof



setRuleAppIndexToAutoMode
public void setRuleAppIndexToAutoMode()(Code)
Currently the rule app index can either operate in interactive mode (and contain applications of all existing taclets) or in automatic mode (and only contain a restricted set of taclets that can possibly be applied automated). This distinction could be replaced with a more general way to control the contents of the rule app index



setRuleAppIndexToInteractiveMode
public void setRuleAppIndexToInteractiveMode()(Code)



setSettings
public void setSettings(ProofSettings newSettings)(Code)



setSimplifier
public void setSimplifier(UpdateSimplifier upd_simplifier)(Code)
sets the default simplifier
Parameters:
  upd_simplifier - the UpdateSimplifier to be used asdefault (may be overwritten by branch specific simplifiers in the future)



simplifier
public UpdateSimplifier simplifier()(Code)
returns the default simplifier to be used (may be overwritten by branch specific simplifiers in the future) the UpdateSimplifier to be used as default one



statistics
public String statistics()(Code)



subtreeCompletelyClosed
public void subtreeCompletelyClosed(Node p_node)(Code)
This is called by a Node that is the root of a subtree that is closed



toString
public String toString()(Code)
toString



updateProof
public void updateProof()(Code)



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedException(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.