Subversion Repositories SmartDukaan

Rev

Rev 2657 | Rev 3448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2657 Rev 3443
Line 96... Line 96...
96
	public double getScore() {
96
	public double getScore() {
97
		if(this.py == null) {
97
		if(this.py == null) {
98
			throw new IllegalStateException("Exec is not called yet");
98
			throw new IllegalStateException("Exec is not called yet");
99
		}
99
		}
100
		
100
		
-
 
101
		PyFloat score;
101
		
102
		try{
102
		PyFloat score = (PyFloat)this.py.get("score");
103
			 score = (PyFloat)this.py.get("score");
-
 
104
		}catch(Exception e){
-
 
105
			Utils.severe("No score returned from script");
-
 
106
			score = null;
-
 
107
		}
103
		
108
		
104
		if(score == null) {
109
		if(score == null) {
105
			CMPRuleDefinition cmpRuleDef = 
110
			CMPRuleDefinition cmpRuleDef = 
106
				this.expandedCMPSlideRuleDefinition.getCMPRuleDefinition();
111
				this.expandedCMPSlideRuleDefinition.getCMPRuleDefinition();
107
			
112