# US 7,610,256 B1 · Registering rules for entity attributes for validation and inference

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 7,610,256 B1
- Document ID: US7610256B1
- Status: Granted
- Kind: B1
- Application number: 11/841,871
- Filed: 2007-08-20
- Granted: 2009-10-27
- Earliest claimed: 2005-12-23
- Assignees: The MathWorks, Inc.
- Inventors: Dongzhe Yang
- Web page: https://patentgrep.com/patent/US7610256B1

## CPC

- G06N 5/02: Knowledge representation; Symbolic representation
- G06F 8/34: Graphical or visual programming
- G06F 9/451: Execution arrangements for user interfaces
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides a method and system for registering rules for attributes of an entity with an entity validation and inference unit. The entity validation and inference unit can further validate input values for an entity and/or infer attributes of an entity using the associated registered rules. The entity validation and inference unit can also provide information regarding attributes, relations, and behaviors of an entity using the associated registered rules in response to a query. The present invention also provides a mechanism for a user to query an entity or the entity validation and inference unit regarding valid values for an entity. The mechanism also allows the user to query the registered rule associated with the entity.

## Claims

### Claim 1

A computer implemented method for describing entity attributes in a modeling application, the method comprising:
generating an entity in the modeling application, wherein the entity includes one or more attributes associated with the entity;
defining one or more rules, wherein at least one of the one or more rules comprises a constraint on a value of the one or more attributes of an entity; and
registering the one or more rules with an entity validation and inference unit.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more rules comprise at least one of a behavior of the entity, a relation of the one or more attributes of the entity, a relation of an entity to one or more other entities, and a valid value of the one or more attributes.

### Claim 3 (depends on 1)

The method of claim 1, wherein the entity further comprises an aspect of a model that has an associated value.

### Claim 4 (depends on 3)

The method of claim 3, wherein the entity is an aspect of a graphical model comprising at least one of a model, a block, a model reference block, a signal, a bus, a bus signal, a struct signal, a parameter, a block parameter, a model option, a subsystem option, a block option, a block display option, a signal display option, an optimization setting, a graphical dialog, a dynamic dialog, and a relative tolerance of a numerical solver.

### Claim 5 (depends on 1)

The method of claim 1, further comprising inferring the value of one or more attributes associated with the entity using a registered rule.

### Claim 6 (depends on 5)

The method of claim 5, wherein inferring the value of one or more attributes associated with the entity using a registered rule further comprises inferring the value of one or more attributes associated with the entity using a predefined value from at least one different attribute.

### Claim 7 (depends on 1)

The method of claim 1, further comprising defining the one or more rules based on at least one of a condition and an action, prepositional logic, first-order logic, an event, a temporal constraint, a probability, and fuzzy logic.

### Claim 8 (depends on 1)

The method of claim 1, further comprising providing at least one or more default rules comprising a constraint on a value of the one or more attributes of an entity.

### Claim 9 (depends on 1)

The method of claim 1 further comprising generating validation code based on the on the one or more rules.

### Claim 10 (depends on 9)

The method of claim 9, further comprising executing the validation code to validate the entity is valid.

### Claim 11 (depends on 9)

The method of claim 9, wherein the validation code is generated separately from a system function described by a model in the modeling application.

### Claim 12 (depends on 9)

The method of claim 9, wherein generating the validation code further comprises identifying a conflict in the one or more rules.

### Claim 13 (depends on 9)

The method of claim 9, wherein the entity comprises a custom entity generated by a user.

### Claim 14

A system for describing entity attributes in a modeling application, the system comprising:
a modeling engine for generating a system model in a modeling application, wherein the modeling engine generates an entity with one or more attributes associated with the entity;
a rules engine for defining one or more rules, wherein at least one of the one or more rules comprises a constraint on a value of the one or more attributes of the entity; and
a validation and inference component for registering the one or more rules.

### Claim 15 (depends on 14)

The system of claim 14, wherein the validation and inference component is further adapted to infer the value of the one or more attributes associated with the entity using a registered rule.

### Claim 16 (depends on 14)

The system of claim 14, wherein the validation and inference component is further adapted to validate the value of the one or more attributes associates with the entity using a registered rule.

### Claim 17 (depends on 14)

The system of claim 14, further comprising a storage component for providing one or more default rules, wherein the one or more default rules comprise a constraint on a value of the one or more attributes of the entity.

### Claim 18 (depends on 14)

The system of claim 14, the system further comprising a code generation component for generating validation code based on the one or more rules.

### Claim 19 (depends on 18)

The system of claim 18, further comprising an execution component for executing the validation code to perform at least one of the functions including inferring the value of the one or more attributes, validating the value of the one or more attributes, and resolving conflicting constraints in the one or more rules.

### Claim 20 (depends on 18)

The system of claim 18, wherein the code generation component generates the validation code separately from a function of the system model.

### Claim 21 (depends on 14)

The system of claim 14, wherein the modeling engine provides for a user to generate a custom entity.

### Claim 22

A computer-readable medium having computer-readable signals stored thereon that define instructions that, as a result of being executed by a computer, instruct the computer to perform a method for describing entity attributes in a modeling application, the computer-readable medium comprising:
instructions for generating an entity in the modeling application, wherein the entity includes one or more attributes associated with the entity;
instructions for defining one or more rules, wherein at least one of the one or more rules comprises a constraint on a value of the one or more attributes of an entity;
instructions for registering the one or more rules with an entity validation and inference unit; and
instructions for generating validation code based on the on the one or more rules.

### Claim 23 (depends on 22)

The computer-readable medium of claim 22, further comprising:
instructions for identifying a conflict in the one or more rules; and
instructions for indicating a status of at least one identified conflict.

### Claim 24 (depends on 23)

The computer-readable medium of claim 23, wherein the instructions for indicating the status of at least one identified conflict includes at least one of an indication of automatic resolution and an indication of required user intervention.

### Claim 25 (depends on 23)

The computer-readable medium of claim 23, further comprising:
instructions for providing one or more default rules for an entity in the modeling application; and
instructions for indicating a violation of the one or more default rules.
