|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.ProbSystemMtbdd
public class ProbSystemMtbdd
ProbSystem MTBDD
This class represents a probabilistic system constructed using MTBDD data structures. A probabilistic system must respect the following constraints :Copyright(c) 2005 Université Laval, LSFM research group.
Field Summary | |
---|---|
Mtbdd |
M
Instance of the MTBDD class that interfaces with CUDD. |
Constructor Summary | |
---|---|
ProbSystemMtbdd(double initialState,
IntervalList statesList,
int nbAct)
Initialize a new system from its initial state and its state space. |
Method Summary | |
---|---|
void |
addLabelToStates(java.util.HashMap map)
Ajoute plusieurs étiquettes |
void |
addLabelToStates(java.lang.String ap,
IntervalList l)
Permet d'ajouter une étiquette à certain états du système. |
void |
addTransition(Transition t)
Ajoute la transition ainsi que les associations si la transition n'est pas déja dans le système. |
void |
addTransition(Transition t,
boolean verify)
Ajoute la transition ainsi que les associations si la transition n'est pas déja dans le système. |
java.util.HashMap |
computeProbabilities(IntervalList list,
java.lang.String act,
Variable v,
Parser p)
Cette fonction donne les intervalles et les fonctions de répartition associées pour lesquels il est possible d'arrivé à partir de la list et avec l'action a. |
java.util.ArrayList |
getActions()
Pour récupérer toutes les actions possibles. |
java.util.TreeSet |
getAP()
Retourne les propositions atomiques |
java.util.ArrayList |
getEnd()
Retourne les intervalles d'arrivée |
java.util.ArrayList |
getExp()
Retourne la liste des fonctions de repartition. |
double |
getInitialState()
Retourne l'état initial. |
Mtbdd |
getM()
Retourne l'objet MTBDD |
int |
getNbAction()
Retourne le nombre d'action possible dans le système. |
java.util.ArrayList |
getStart()
Retourne les intervalles de depart |
IntervalList |
getStates()
Retourne l'ensemble des intervalles qui constitue les états du système. |
IntervalList |
getStatesForLabel(java.lang.String ap)
Renvoie l'ensemble des états dans lesquels la proposition atomique ap est valide. |
int |
getTrans()
Returns a pointer for the MTBDD reference. |
Transition[] |
getTransitions()
Retourne toutes les transitions. |
java.util.Vector |
getTransitionsVector()
Returns a vactor containing all the transitions of the system. |
void |
removeLabelFromStates(java.lang.String ap,
IntervalList l)
Enlève des etiquettes |
void |
removeTransition(Transition t)
Enleve une transition. |
void |
setInitialState(double newInitialState)
Modifies the initial state of the system |
void |
setStates(IntervalList newStateSpace)
Sets all the possible states of the system. |
java.lang.String |
toString()
Pour l'affichage et pour envoyer dans un fichier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Mtbdd M
Constructor Detail |
---|
public ProbSystemMtbdd(double initialState, IntervalList statesList, int nbAct)
initialState
- initial state of the systemstatesList
- the state spacenbAct
- the maximum number of actionsMethod Detail |
---|
public int getTrans()
getTrans
in interface ProbSystem
public Mtbdd getM()
getM
in interface ProbSystem
public int getNbAction()
getNbAction
in interface ProbSystem
public double getInitialState()
getInitialState
in interface ProbSystem
public void setInitialState(double newInitialState) throws java.lang.Exception
setInitialState
in interface ProbSystem
newInitialState
- the new initial state
java.lang.Exception
- if the initial state is invalidpublic java.util.ArrayList getExp()
getExp
in interface ProbSystem
public java.util.ArrayList getStart()
getStart
in interface ProbSystem
public java.util.ArrayList getEnd()
getEnd
in interface ProbSystem
public IntervalList getStates()
getStates
in interface ProbSystem
public void setStates(IntervalList newStateSpace) throws java.lang.Exception
setStates
in interface ProbSystem
java.lang.Exception
- should the new state space be invalidpublic java.util.TreeSet getAP()
getAP
in interface ProbSystem
public void addLabelToStates(java.util.HashMap map) throws ProbSystemException
addLabelToStates
in interface ProbSystem
map
- an association table (states --> label)
ProbSystemException
- should an invalid association existpublic void addLabelToStates(java.lang.String ap, IntervalList l) throws ProbSystemException
addLabelToStates
in interface ProbSystem
ap
- L'étiquette à ajouter aux états. Doit être un seul mot et doit commencer par une minusculel
- Les états à être étiquettés. Doit être différent de l'ensemble vide.
ProbSystemException
- Si la proposition atomique ne commence pas par une minusculepublic void removeLabelFromStates(java.lang.String ap, IntervalList l)
removeLabelFromStates
in interface ProbSystem
ap
- the association from which to remove the associationl
- the list of intervals to dissociatepublic IntervalList getStatesForLabel(java.lang.String ap)
getStatesForLabel
in interface ProbSystem
ap
- the atomic proposition to query
public java.util.ArrayList getActions()
getActions
in interface ProbSystem
public void addTransition(Transition t) throws ProbSystemException
addTransition
in interface ProbSystem
t
- a valid transition to be added
ProbSystemException
- Si l'un des critères ci-haut est violé.public void addTransition(Transition t, boolean verify) throws ProbSystemException
addTransition
in interface ProbSystem
t
- a valid transition to be addedverify
- if the system's integrity should be verified
ProbSystemException
- Si l'un des critères ci-haut est violé.public void removeTransition(Transition t)
removeTransition
in interface ProbSystem
t
- the transition to remove from the system.public Transition[] getTransitions()
getTransitions
in interface ProbSystem
public java.util.Vector getTransitionsVector()
ProbSystem
getTransitionsVector
in interface ProbSystem
public java.lang.String toString()
toString
in interface ProbSystem
toString
in class java.lang.Object
public java.util.HashMap computeProbabilities(IntervalList list, java.lang.String act, Variable v, Parser p)
computeProbabilities
in interface ProbSystem
list
- the list of source intervals.act
- the action to apply.v
- the variable which must be computed.p
- a logical parser to analyse the expressions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |