|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.pog.lemma.Lemma
jml2b.pog.lemma.SimpleLemma
This class implements a simple lemma, that is a set of goals
Field Summary |
Constructor Summary | |
SimpleLemma()
Constructs a lemma with an empty set of goals |
|
SimpleLemma(Formula f,
GoalOrigin origin)
Constructs a lemma from a formula. |
|
SimpleLemma(IJml2bConfiguration config,
Expression f,
GoalOrigin origin)
Constructs a lemma from an expression. |
|
SimpleLemma(IJml2bConfiguration config,
java.util.Vector v,
GoalOrigin origin)
Constructs a lemma from a set of expression. |
|
SimpleLemma(Lemma l)
Constructs a simple lemma containing only non obvious goals from a lemma. |
|
SimpleLemma(java.util.Vector goals)
Constructs a lemma from a loaded one. |
Method Summary | |
void |
addGoal(Goal g)
Adds a goal to the goal set |
void |
addGoals(SimpleLemma l)
Concats two simple lemmas |
void |
addImplicToGoal(Formula f,
byte origin)
Transforms each goal into an implication formula |
Lemma |
catchException(Type type,
Field catchParam)
Returns an exsures lemma |
java.lang.Object |
clone()
Clones the simple lemma |
static java.util.Vector |
coloredInfos(java.util.Vector pis,
byte comment)
Returns the set of ColoredInfo construct from a set of
ParsedItem |
void |
garbageIdent()
Annotates all the fields that appear in the lemma to declare them in the Atelier B files. |
void |
getFields(java.util.Set fields)
|
Formula |
getFormula()
|
Goal |
getGoal(int i)
Returns a goal |
java.util.Enumeration |
getGoals()
Returns the set of goals |
void |
mergeWith(Goal[] goals)
Merges the lemma with a loaded set of lemmas. |
int |
nbPo()
Returns the number of goals. |
int |
nbPoChecked()
|
int |
nbPoProved()
Returns the number of goals that are in a specified state. |
int |
nbPoProved(java.lang.String prover)
Returns the number of goals that are in a specified state. |
void |
oldParam(java.util.Vector e)
Adds a old param around the element of the enumeration corresponding to the parameter of the method. |
boolean |
proveObvious(java.util.Vector hyp,
boolean atTheEnd)
Supress in the lemma the obvious goals. |
void |
save(IJml2bConfiguration config,
JpoOutputStream s,
JmlFile jf)
|
void |
selectLabel(java.util.Vector labels)
Selects in the labelled lemmas, the cases corresponding to labels. |
void |
sub(Substitution s)
Apply a substitution to the lemma. |
void |
suppressSpecialOld(int token)
Suppress the Called Old expressions. |
Methods inherited from class jml2b.pog.lemma.Lemma |
catches, getTypesException, throwException, throwException |
Methods inherited from class jml2b.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleLemma()
public SimpleLemma(IJml2bConfiguration config, Expression f, GoalOrigin origin) throws Jml2bException, PogException
config
- The current configurationf
- The expressionorigin
- The origin to assign to created goalspublic SimpleLemma(Formula f, GoalOrigin origin)
f
- The formulaorigin
- The origin to assign to created goalspublic SimpleLemma(IJml2bConfiguration config, java.util.Vector v, GoalOrigin origin) throws Jml2bException, PogException
config
- The current configurationv
- The set of expressionorigin
- The origin to assign to created goalspublic SimpleLemma(java.util.Vector goals)
goals
- The set of loaded goalspublic SimpleLemma(Lemma l)
l
- The lemma to convertMethod Detail |
public static java.util.Vector coloredInfos(java.util.Vector pis, byte comment)
ColoredInfo
construct from a set of
ParsedItem
pis
- The set of ParsedItem
public java.lang.Object clone()
clone
in class Lemma
public void addGoals(SimpleLemma l)
l
- The simple lemma to concatpublic void addGoal(Goal g)
g
- The goal to addpublic void addImplicToGoal(Formula f, byte origin)
f
- The implication antecedentorigin
- The origin of f
public int nbPo()
Lemma
nbPo
in class Lemma
Proofs.nbPo()
public int nbPoProved(java.lang.String prover)
Lemma
nbPoProved
in class Lemma
Proofs#nbProved(int)
public int nbPoProved()
Lemma
nbPoProved
in class Lemma
Proofs#nbProved(int)
public int nbPoChecked()
nbPoChecked
in class Lemma
public void oldParam(java.util.Vector e)
ILemma
oldParam
in interface ILemma
e
- fields enumerationTheorem#oldParam(Enumeration)
public void sub(Substitution s)
ILemma
sub
in interface ILemma
s
- substitution to apply.Proofs.sub(Substitution)
public void suppressSpecialOld(int token)
ILemma
suppressSpecialOld
in interface ILemma
Theorem#suppressCalledOld()
public void save(IJml2bConfiguration config, JpoOutputStream s, JmlFile jf) throws java.io.IOException
java.io.IOException
public boolean proveObvious(java.util.Vector hyp, boolean atTheEnd)
ILemma
proveObvious
in interface ILemma
true
if the lemma contains only obvious goals,
false
otherwise.Proofs.proveObvious(boolean, boolean)
public void garbageIdent()
ILemma
garbageIdent
in interface ILemma
Theorem#garbageIdent()
public void getFields(java.util.Set fields)
getFields
in class Lemma
public Lemma catchException(Type type, Field catchParam)
catchException
in class Lemma
type
- catched exceptioncatchParam
- catched parameter
public void selectLabel(java.util.Vector labels) throws WrongLabelException
Lemma
selectLabel
in class Lemma
labels
- set of labels that have to be selected
WrongLabelException
- if a behaviour lemma does not contain any
remaining case after the selection.public void mergeWith(Goal[] goals)
public Formula getFormula()
public java.util.Enumeration getGoals()
public Goal getGoal(int i)
i
- The goal index
i
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |