Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mining;
- import data.*;
- public class ContinuousItem extends Item {
- private float inf; //estremo inferiore
- private float sup; //estremo superiore
- public ContinuousItem(ContinuousAttribute attribute, Interval value) {
- super(attribute,value);
- this.attribute = attribute;
- this.value = value;
- }
- boolean checkItemCondition(Object value) {
- // checkValueInclusion( value); mi ricorda lontanamente sto metodo di Interval, ma booooh LEL
- float val =(float) value;//non si puo confrontare un object con valori float per cui downcasting, pero' TODO: usare float normale o classi wrapper?
- if(val >= this.inf & val <= this.sup)
- return true;
- else
- return false;
- }
- public String toString() {
- return super.toString();
- //TODO: che ne pensate? LEL
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement