All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gitlab.chaver.mining.patterns.measure.operand.Mul Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
/*
 * This file is part of io.gitlab.chaver:data-mining (https://gitlab.com/chaver/data-mining)
 *
 * Copyright (c) 2022, IMT Atlantique
 *
 * Licensed under the MIT license.
 *
 * See LICENSE file in the project root for full license information.
 */
package io.gitlab.chaver.mining.patterns.measure.operand;

import io.gitlab.chaver.mining.patterns.measure.Measure;

import java.util.Set;

public class Mul extends BinaryOperand {

    public Mul(MeasureOperand o1, MeasureOperand o2) {
        super(o1, o2);
    }

    @Override
    public Set maxConvert() {
        Set convertResult = getO1().maxConvert();
        convertResult.addAll(getO2().maxConvert());
        return convertResult;
    }

    @Override
    public Set minConvert() {
        Set convertResult = getO2().minConvert();
        convertResult.addAll(getO2().minConvert());
        return convertResult;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy