Java Doc for Goal.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.Goal

Goal
public class Goal (Code)
A proof is represented as a tree of nodes containing sequents. The initial proof consists of just one node -- the root -- that has to be proved. Therefore it is divided up into several sub goals and so on. A single goal is not divided into sub goals any longer if the contained sequent becomes an axiom. A proof is closed if all leaves are closed. As the calculus works only on the leaves of a tree, the goals are the additional information needed for the proof is only stored at the leaves (saves memory) and not in the inner nodes. This class represents now a goal of the proof, this means a leave whose sequent is not closed. It keeps track of all applied rule applications on the branch and of the corresponding rule application index. Furthermore it offers methods for setting back several proof steps. The sequent has to be changed using the methods of Goal.



Constructor Summary
public  Goal(Node node, RuleAppIndex ruleAppIndex)
    

Method Summary
public  voidaddAppliedRuleApp(RuleApp app)
    
public  voidaddClosureConstraint(Constraint c)
    
public  voidaddFormula(ConstrainedFormula cf, PosInOccurrence p)
    
public  voidaddFormula(ListOfConstrainedFormula insertions, PosInOccurrence p)
    
public  voidaddFormula(ListOfConstrainedFormula insertions, boolean inAntec, boolean first)
     adds a list of formulas to the antecedent or succedent of a sequent.
public  voidaddFormula(ConstrainedFormula cf, boolean inAntec, boolean first)
     adds a formula to the antecedent or succedent of a sequent.
public  voidaddGoalListener(GoalListener l)
     adds the listener l to the list of goal listeners. Attention: A listener added to this goal will be taken over when splitting into subgoals.
public  voidaddNoPosTacletApp(NoPosTacletApp app)
     puts the NoPosTacletApp to the set of TacletApps at the node of the goal and to the current RuleAppIndex.
public  voidaddProgramVariable(ProgramVariable pv)
    
public  voidaddProgramVariables(Namespace ns)
    
public  voidaddRestrictedMetavariable(Metavariable mv)
    
public static  voidaddRuleAppListener(RuleAppListener p)
    
public  voidaddTaclet(Taclet rule, SVInstantiations insts, Constraint constraint)
     creates a new TacletApp and puts it to the set of TacletApps at the node of the goal and to the current RuleAppIndex.
public  ListOfRuleAppappliedRuleApps()
    
public  ListOfGoalapply(RuleApp p_ruleApp)
    
public static  voidapplyUpdateSimplifier(ListOfGoal goalList)
    
public  voidapplyUpdateSimplifier()
    
public  voidapplyUpdateSimplifier(boolean antec)
    
public  voidchangeFormula(ConstrainedFormula cf, PosInOccurrence p)
    
public  voidchangeFormula(ListOfConstrainedFormula replacements, PosInOccurrence p)
    
public  voidclearAndDetachRuleAppIndex()
    
public  Objectclone()
    
public  Goalcopy()
    
public  NamespacecreateGlobalProgVarNamespace()
    
protected  voidfireGoalReplaced(Goal goal, Node parent, ListOfGoal newGoals)
    
protected  voidfireRuleApplied(ProofEvent p_e)
    
protected  voidfireSequentChanged(SequentChangeInfo sci)
     informs all goal listeners about a change of the sequent to reduce unnecessary object creation the necessary information is passed to the listener as parameters and not through an event object.
public  ConstraintgetClosureConstraint()
    
public  FormulaTagManagergetFormulaTagManager()
    
public  SetOfProgramVariablegetGlobalProgVars()
    
public  StrategygetGoalStrategy()
    
public  AutomatedRuleApplicationManagergetRuleAppManager()
    
public  longgetTime()
    
public  NamespacegetVariableNamespace(Namespace exNS)
     adds the global program variables to a new created variable namespace that contains all the elements of the given namespace.
public  TacletIndexindexOfTaclets()
     returns the Taclet index for this goal.
public  Nodenode()
    
public  Proofproof()
    
public  voidremoveAppliedRuleApp()
    
public  voidremoveFormula(PosInOccurrence p)
    
public  voidremoveGoalListener(GoalListener l)
     removes the listener l from the list of goal listeners. Attention: The listener is just removed from 'this' goal not from the other goals.
public static  voidremoveRuleAppListener(RuleAppListener p)
    
public  RuleAppIndexruleAppIndex()
    
public  Sequentsequent()
    
public  ListOfGoalsetBack(ListOfGoal goalList)
     sets back the proof step that led to this goal.
public  voidsetBranchLabel(String s)
    
public  voidsetGlobalProgVars(SetOfProgramVariable s)
    
public  voidsetGoalStrategy(Strategy p_goalStrategy)
    
public  voidsetRuleAppManager(AutomatedRuleApplicationManager manager)
    
public  voidsetSequent(SequentChangeInfo sci)
    
public  UpdateSimplifiersimplifier()
    
public  ListOfGoalsplit(int n)
     creates n new nodes as children of the referenced node and new n goals that have references to these new nodes.
public  StringtoString()
    
public  voidupdateRuleAppIndex()
    


Constructor Detail
Goal
public Goal(Node node, RuleAppIndex ruleAppIndex)(Code)
creates a new goal referencing the given node




Method Detail
addAppliedRuleApp
public void addAppliedRuleApp(RuleApp app)(Code)
puts a RuleApp to the list of the applied rule apps at this goal and stores it in the node of the goal
Parameters:
  app - the applied rule app



addClosureConstraint
public void addClosureConstraint(Constraint c)(Code)



addFormula
public void addFormula(ConstrainedFormula cf, PosInOccurrence p)(Code)
adds a formula to the sequent before the given position and informs the rule appliccation index about this change
Parameters:
  cf - the ConstrainedFormula to be added
Parameters:
  p - PosInOccurrence encodes the position



addFormula
public void addFormula(ListOfConstrainedFormula insertions, PosInOccurrence p)(Code)
adds a list of formulas to the sequent before the given position and informs the rule appliccation index about this change
Parameters:
  insertions - the ListOfConstrainedFormula to be added
Parameters:
  p - PosInOccurrence encodes the position



addFormula
public void addFormula(ListOfConstrainedFormula insertions, boolean inAntec, boolean first)(Code)
adds a list of formulas to the antecedent or succedent of a sequent. Either at its front or back. and informs the rule appliccation index about this change
Parameters:
  insertions - the ListOfConstrainedFormula to be added
Parameters:
  inAntec - boolean true(false) if ConstrainedFormula has to beadded to antecedent (succedent)
Parameters:
  first - boolean true if at the front, if false then cf isadded at the back



addFormula
public void addFormula(ConstrainedFormula cf, boolean inAntec, boolean first)(Code)
adds a formula to the antecedent or succedent of a sequent. Either at its front or back and informs the rule appliccation index about this change
Parameters:
  cf - the ConstrainedFormula to be added
Parameters:
  inAntec - boolean true(false) if ConstrainedFormula has to beadded to antecedent (succedent)
Parameters:
  first - boolean true if at the front, if false then cf isadded at the back



addGoalListener
public void addGoalListener(GoalListener l)(Code)
adds the listener l to the list of goal listeners. Attention: A listener added to this goal will be taken over when splitting into subgoals.
Parameters:
  l - the GoalListener to be added



addNoPosTacletApp
public void addNoPosTacletApp(NoPosTacletApp app)(Code)
puts the NoPosTacletApp to the set of TacletApps at the node of the goal and to the current RuleAppIndex.
Parameters:
  app - the TacletApp



addProgramVariable
public void addProgramVariable(ProgramVariable pv)(Code)



addProgramVariables
public void addProgramVariables(Namespace ns)(Code)



addRestrictedMetavariable
public void addRestrictedMetavariable(Metavariable mv)(Code)



addRuleAppListener
public static void addRuleAppListener(RuleAppListener p)(Code)



addTaclet
public void addTaclet(Taclet rule, SVInstantiations insts, Constraint constraint)(Code)
creates a new TacletApp and puts it to the set of TacletApps at the node of the goal and to the current RuleAppIndex.
Parameters:
  rule - the Taclet of the TacletApp to create
Parameters:
  insts - the given instantiations of the TacletApp to be created
Parameters:
  constraint - the constraint under which the taclet can be applied



appliedRuleApps
public ListOfRuleApp appliedRuleApps()(Code)
returns set of rules applied at this branch ListOfRuleApp applied rule applications



apply
public ListOfGoal apply(RuleApp p_ruleApp)(Code)



applyUpdateSimplifier
public static void applyUpdateSimplifier(ListOfGoal goalList)(Code)



applyUpdateSimplifier
public void applyUpdateSimplifier()(Code)



applyUpdateSimplifier
public void applyUpdateSimplifier(boolean antec)(Code)



changeFormula
public void changeFormula(ConstrainedFormula cf, PosInOccurrence p)(Code)
replaces a formula at the given position and informs the rule application index about this change
Parameters:
  cf - the ConstrainedFormula replacing the old one
Parameters:
  p - the PosInOccurrence encoding the position



changeFormula
public void changeFormula(ListOfConstrainedFormula replacements, PosInOccurrence p)(Code)
replaces a formula at the given position and informs the rule appliccation index about this change
Parameters:
  cf - the ConstrainedFormula replacing the old one
Parameters:
  p - PosInOccurrence encodes the position



clearAndDetachRuleAppIndex
public void clearAndDetachRuleAppIndex()(Code)
Rebuild all rule caches



clone
public Object clone()(Code)
clones the goal (with copy of tacletindex and ruleAppIndex) Object the clone



copy
public Goal copy()(Code)
like the clone method but returns right type Goal clone of this Goal



createGlobalProgVarNamespace
public Namespace createGlobalProgVarNamespace()(Code)



fireGoalReplaced
protected void fireGoalReplaced(Goal goal, Node parent, ListOfGoal newGoals)(Code)



fireRuleApplied
protected void fireRuleApplied(ProofEvent p_e)(Code)
fires the event that a rule has been applied



fireSequentChanged
protected void fireSequentChanged(SequentChangeInfo sci)(Code)
informs all goal listeners about a change of the sequent to reduce unnecessary object creation the necessary information is passed to the listener as parameters and not through an event object.



getClosureConstraint
public Constraint getClosureConstraint()(Code)



getFormulaTagManager
public FormulaTagManager getFormulaTagManager()(Code)
this object manages the tags for all formulas of the sequent



getGlobalProgVars
public SetOfProgramVariable getGlobalProgVars()(Code)



getGoalStrategy
public Strategy getGoalStrategy()(Code)
the strategy that determines automated rule applications for thisgoal



getRuleAppManager
public AutomatedRuleApplicationManager getRuleAppManager()(Code)



getTime
public long getTime()(Code)
the current time of this goal (which is just the number ofapplied rules)



getVariableNamespace
public Namespace getVariableNamespace(Namespace exNS)(Code)
adds the global program variables to a new created variable namespace that contains all the elements of the given namespace.



indexOfTaclets
public TacletIndex indexOfTaclets()(Code)
returns the Taclet index for this goal. This is just a shortcut to the Taclet index of the RuleAppIndex the Taclet index assigned to this goal



node
public Node node()(Code)
returns the referenced node



proof
public Proof proof()(Code)
returns the proof the goal belongs to the Proof the goal belongs to



removeAppliedRuleApp
public void removeAppliedRuleApp()(Code)
PRECONDITION: appliedRuleApps.size () > 0



removeFormula
public void removeFormula(PosInOccurrence p)(Code)
removes a formula at the given position from the sequent and informs the rule appliccation index about this change
Parameters:
  p - PosInOccurrence encodes the position



removeGoalListener
public void removeGoalListener(GoalListener l)(Code)
removes the listener l from the list of goal listeners. Attention: The listener is just removed from 'this' goal not from the other goals. (All goals can be accessed via proof openGoals())
Parameters:
  l - the GoalListener to be removed



removeRuleAppListener
public static void removeRuleAppListener(RuleAppListener p)(Code)



ruleAppIndex
public RuleAppIndex ruleAppIndex()(Code)
returns the index of possible rule applications at this node



sequent
public Sequent sequent()(Code)
returns the sequent of the node the Sequent to be proved



setBack
public ListOfGoal setBack(ListOfGoal goalList)(Code)
sets back the proof step that led to this goal. This goal is set to the parent node of the node corresponding to this goal. Goals given in the goal list parameter are removed from that list, if their corresponding nodes are leaves of the parent node of this goal.
Parameters:
  goalList - the ListOfGoal with the goals to be removed the new list of goals where goals mapped to the leaves ofthe parent to this goal are removed from compared to the given list.



setBranchLabel
public void setBranchLabel(String s)(Code)



setGlobalProgVars
public void setGlobalProgVars(SetOfProgramVariable s)(Code)



setGoalStrategy
public void setGoalStrategy(Strategy p_goalStrategy)(Code)



setRuleAppManager
public void setRuleAppManager(AutomatedRuleApplicationManager manager)(Code)



setSequent
public void setSequent(SequentChangeInfo sci)(Code)
sets the sequent of the node
Parameters:
  sci - SequentChangeInfo containing the sequent to be set and desribing the applied changes to the sequent of the parent node



simplifier
public UpdateSimplifier simplifier()(Code)
returns the simplifier that has to be used



split
public ListOfGoal split(int n)(Code)
creates n new nodes as children of the referenced node and new n goals that have references to these new nodes. the list of new created goals.



toString
public String toString()(Code)
toString



updateRuleAppIndex
public void updateRuleAppIndex()(Code)
Rebuild all rule caches



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.