Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
6cb54258
Commit
6cb54258
authored
2 years ago
by
Sophie Coudert
Browse files
Options
Downloads
Patches
Plain Diff
add javadoc to IBSolverAPI
parent
f3ed77b3
No related branches found
No related tags found
1 merge request
!457
IntBoolSolver (IBS) version 1.0 completed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/myutil/intboolsolver/IBSolverAPI.java
+64
-2
64 additions, 2 deletions
src/main/java/myutil/intboolsolver/IBSolverAPI.java
with
64 additions
and
2 deletions
src/main/java/myutil/intboolsolver/IBSolverAPI.java
+
64
−
2
View file @
6cb54258
...
...
@@ -213,6 +213,19 @@ public abstract class IBSolverAPI<
* by _ss.
*/
public
abstract
int
getResult
(
SpecState
_ss
);
/**
* Evaluate the expression.
*
* <p> Similar to {@code getResult(SpecState _ss)} but
* with a state parameter for specific case. In standard
* extension, state leaves are evaluated w.r.t. the state
* parameter, rather than specification state.
* @param _ss the specification state in which open
* leaves (are expected to) have a value.
* @param _st the state parameter
* @return the value associated to the expression
* by _ss.
*/
public
abstract
int
getResult
(
SpecState
_ss
,
State
_st
);
...
...
@@ -227,16 +240,65 @@ public abstract class IBSolverAPI<
* @param _cs the component state in which open
* leaves (are expected to) have a value.
* @return the value associated to the expression
* by _
c
s.
* by _s
s and _st
.
*/
public
abstract
int
getResult
(
CompState
_cs
);
/**
* Evaluate the expression.
*
* <p> Can be used for some optimized low level state
* parameter like arrays, for example. The real type of
* this parameter is instanciation dependent. It is not
* a parameter of the generic solver because predefined
* low level classes cannot be declared as extension or
* implementation of application classes such as our
* IBSParamXXX classes. </p>
* @param _qs the "quick access" state in which open
* leaves (are expected to) have a value.
* @return the value associated to the expression
* by _qs.
*/
public
abstract
int
getResult
(
Object
_qs
);
/**
* Usual...
*/
public
abstract
String
toString
();
/**
* Check whether some leaves of the expression are state
* leaves.
* @return true if the expression has state leaves. Otherwise, false.
* @return true if the expression has state leaves. Otherwise, false.
*/
public
abstract
boolean
hasState
();
public
abstract
void
linkComp
(
Spec
spec
);
/**
* links state leaves to their environment (spec, comp) if
* it hasn't been done previously for optimisation reasons.
* If possible... (leaves must have internal information about
* this environment). Too specific, to enhance in the future...
*/
public
abstract
void
linkStates
();
/**
* links blocs of attributes to their spec if
* it hasn't been done previously.
* If relevant... (attributes must have internal information about
* these blocks). Too specific, to enhance in the future...
*/
public
abstract
void
linkComp
(
Spec
spec
);
/**
* get the type of the expression, among IMMEDIATE_INT,
* IMMEDIATE_BOOL and IMMEDIATE_NO.
*
* <p> Expressions that have been successfully parsed should not
* return IMMEDIATE_NO (which denote an undefined type, in
* particular for open leaves than have not been typed while parsing..
* @return the type of the expression, among IMMEDIATE_INT,
* IMMEDIATE_BOOL and IMMEDIATE_NO
*/
public
abstract
int
getReturnType
();
}
//!! Only used in test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment