Class FlatCInstance


  • public final class FlatCInstance
    extends Object
    Instance of Component. Created: Thu Apr 14 23:02:05 2005
    Version:
    1.0
    Author:
    Ernst Reissner
    • Method Detail

      • remove

        public FlatCInstance remove​(SInstance serv,
                                    Deficiency def)
        Returns the FlatCInstance arising from this one by assuming that def does not occur within serv.
        Parameters:
        serv - a SInstance with probability distribution. serv.distr != null.
        def - a Deficiency minimal within the type of serv. **** is this unique or not? ****
        Returns:
        a FlatCInstance arising from this one by assuming that def does not occur within serv.
      • add

        public FlatCInstance add​(SInstance serv,
                                 Deficiency def)
        Returns the FlatCInstance arising from this one by assuming that def occurs within serv.
        Parameters:
        serv - a SInstance with probability distribution. serv.distr != null.
        def - a Deficiency minimal within the type of serv. **** is this unique or not? ****
        Returns:
        a FlatCInstance arising from this one by assuming that def occurs within serv.
      • instDefic

        private FlatCInstance.InstDef instDefic​(SInstance serv)
        Maps the given effect which is given by a formula, onto an FlatCInstance.InstDef consisting of a variable with probability distribution occuring in the formula and its minimal deficiency. If no such variable exists, the variables within the formula (which are then all associated with formulae) are substituted within the root formula, by their associated formulae.
        Parameters:
        serv - an SInstance given by a formula. **** what if no formula is present? ****
        Returns:
        an InstDef consisting of a variable occuring in the formula and its minimal deficiency. If this does not exist, null is returned.
      • getProb

        public BigDecimal getProb​(List<String> sPath)
        Returns the probability that the effect specified by sPath is not the empty set. It is intended to be applied primarily to Boolean effects, i.e. to effects isomorphic to Boolean ones, i.e. to one-point effects. Then this method returns the probability for true.
        Parameters:
        sPath - identifies a effect.
        Returns:
        the probability described above as a BigDecimal value.