Subversion Repositories SmartDukaan

Rev

Rev 64 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 64 Rev 65
Line 1... Line 1...
1
/**
1
/**
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.util;
4
package in.shop2020.util;
5
 
5
 
6
import in.shop2020.metamodel.core.Feature;
-
 
7
import in.shop2020.metamodel.core.Slide;
-
 
8
import in.shop2020.metamodel.definitions.FeatureDefinition;
6
import in.shop2020.metamodel.definitions.FeatureDefinition;
9
import in.shop2020.metamodel.definitions.RuleDefinition;
7
import in.shop2020.metamodel.definitions.RuleDefinition;
10
import in.shop2020.metamodel.definitions.SlideDefinition;
8
import in.shop2020.metamodel.definitions.SlideDefinition;
11
import in.shop2020.metamodel.util.ExpandedEntity;
9
import in.shop2020.metamodel.util.ExpandedEntity;
12
import in.shop2020.metamodel.util.ExpandedFacetDefinition;
10
import in.shop2020.metamodel.util.ExpandedFacetDefinition;
-
 
11
import in.shop2020.metamodel.util.ExpandedFeature;
-
 
12
import in.shop2020.metamodel.util.ExpandedSlide;
13
 
13
 
14
import java.util.List;
14
import java.util.List;
15
 
15
 
16
import org.python.core.PyList;
16
import org.python.core.PyList;
17
import org.python.core.PyObject;
17
import org.python.core.PyObject;
Line 81... Line 81...
81
	
81
	
82
	/**
82
	/**
83
	 * 
83
	 * 
84
	 * @param feature
84
	 * @param feature
85
	 */
85
	 */
86
	public void setFeature(Feature feature) {
86
	public void setExpandedFeature(ExpandedFeature expandedFeature) {
87
		if(this.py == null) {
87
		if(this.py == null) {
88
			this.py = new PythonInterpreter();
88
			this.py = new PythonInterpreter();
89
		}
89
		}
90
		
90
		
91
		this.py.set("feature", feature);
91
		this.py.set("expFeature", expandedFeature);
92
	}
92
	}
93
	
93
	
94
	/**
94
	/**
95
	 * 
95
	 * 
96
	 * @param slideDefinition
96
	 * @param slideDefinition
Line 105... Line 105...
105
	
105
	
106
	/**
106
	/**
107
	 * 
107
	 * 
108
	 * @param slide
108
	 * @param slide
109
	 */
109
	 */
110
	public void setSlide(Slide slide) {
110
	public void setExpandedSlide(ExpandedSlide expSlide) {
111
		if(this.py == null) {
111
		if(this.py == null) {
112
			this.py = new PythonInterpreter();
112
			this.py = new PythonInterpreter();
113
		}
113
		}
114
		
114
		
115
		this.py.set("slide", slide);
115
		this.py.set("expSlide", expSlide);
116
	}
116
	}
117
	
117
	
118
	/**
118
	/**
119
	 * Executes IR Data rule from ExpandedFacetDefinition instance
119
	 * Executes IR Data rule from ExpandedFacetDefinition instance
120
	 */
120
	 */