Package org.iam.intent
Class MCPIntent
java.lang.Object
org.iam.intent.MCPIntent
MCPIntent represents a finding with domain values and symbolic encoding.
Encapsulates domain values, supports refinement, and provides symbolic encoding using MCPBitVector. Used for intent mining, reduction, and merging.
- Since:
- 2025-02-28
- Author:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the domain values for this intent.org.mcp.core.MCPBitVectorGets the symbolic encoding node for this intent.static MCPIntentgetRootFinding(org.mcp.core.MCPFactory cubeFactory) Creates and returns the root intent, initializing domain values for all domains.inthashCode()refines()Refines the current intent into a set of more specific intents.static voidsetDomainLabelTrees(DomainLabelTrees domainLabelTrees) Sets the domain label trees for all MCPIntent instances.voidsetDomainValue(String domain, Object value) Sets the value for a specific domain.static voidsetMCPLabelsFactory(org.mcp.core.MCPFactory cube) Sets the MCPFactory for all MCPIntent instances.toString()Returns a string representation of this intent.
-
Constructor Details
-
MCPIntent
public MCPIntent()Default constructor. Initializes domain label trees and domain values. -
MCPIntent
Copy constructor. Copies domain values from another MCPIntent.- Parameters:
other- the MCPIntent to copy- Throws:
IllegalArgumentException- if the other object is null
-
-
Method Details
-
setDomainLabelTrees
Sets the domain label trees for all MCPIntent instances.- Parameters:
domainLabelTrees- the DomainLabelTrees instance
-
setMCPLabelsFactory
public static void setMCPLabelsFactory(org.mcp.core.MCPFactory cube) Sets the MCPFactory for all MCPIntent instances.- Parameters:
cube- the MCPFactory instance
-
getRootFinding
Creates and returns the root intent, initializing domain values for all domains.- Parameters:
cubeFactory- the MCPFactory instance- Returns:
- the root MCPIntent
-
refines
Refines the current intent into a set of more specific intents.- Returns:
- a set of refined MCPIntent objects
-
getMCPNode
public org.mcp.core.MCPBitVector getMCPNode()Gets the symbolic encoding node for this intent. If not yet calculated, computes it as the conjunction of all domain values.- Returns:
- the MCPBitVector node
-
setDomainValue
Sets the value for a specific domain.- Parameters:
domain- the domain namevalue- the value to set
-
getDomainValues
Returns the domain values for this intent.- Returns:
- the domain values map
-
equals
-
hashCode
public int hashCode() -
toString
Returns a string representation of this intent.
-