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

fr.boreal.component_builder.operations.RuleBaseLoadingOperationResult Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
package fr.boreal.component_builder.operations;

import java.io.Serializable;

import fr.boreal.component_builder.api.IOperationResult;
import fr.boreal.model.kb.api.RuleBase;

/**
 * records the size of the loaded rule base
 * 
 * @param size
 */
public record RuleBaseLoadingOperationResult(long size) implements IOperationResult, Serializable {

	/**
	 * records the size of the loaded rule base
	 * 
	 * @param rb
	 */
	public RuleBaseLoadingOperationResult(RuleBase rb) {
		this(rb.getRules().size());
	}

	public String serializationString() {
		return "Rulebase size : " + size;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy