public function getCompositionRules()
    {
        $subExpressions = array();
        foreach ($this->components as $irp) {
        	$subExpressions[] = new CommonExpression('variable', array('identifier' => $irp->getOutcome()->getIdentifier()));
        }
        $sum = new CommonExpression('sum', array());
        $sum->setSubExpressions($subExpressions);
        $summationRule = new SetOutcomeVariable($this->outcomeIdentifier, $sum);
        
        $returnValue = array($summationRule);

        return (array) $returnValue;
    }
public function getCompositionRules()
    {
        $subExpressions = array();
        foreach ($this->components as $irp) {
        	$subExpressions[] = new CommonExpression('variable', array('identifier' => $irp->getOutcome()->getIdentifier()));
        }
        $sum = new CommonExpression('sum', array());
        $sum->setSubExpressions($subExpressions);
        $summationRule = new SetOutcomeVariable($this->outcomeIdentifier, $sum);
        
        $returnValue = array($summationRule);

        return (array) $returnValue;
    }
public function getCompositionRules ( ) { $ subExpressions = array ( ) ; foreach ( $ this -> components as $ irp ) { $ subExpressions [ ] = new CommonExpression ( 'variable' , array ( 'identifier' => $ irp -> getOutcome ( ) -> getIdentifier ( ) ) ) ; } $ sum = new CommonExpression ( 'sum' , array ( ) ) ; $ sum -> setSubExpressions ( $ subExpressions ) ; $ summationRule = new SetOutcomeVariable ( $ this -> outcomeIdentifier , $ sum ) ; $ returnValue = array ( $ summationRule ) ; return ( array ) $ returnValue ; }
Short description of method getCompositionRules

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@return array
Short description of method getCompositionRules