# US 2008/0301625 A1 · System and method for creating and updating a data model from disparate events received on arbitrary application threads

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

- Number: US 2008/0301625 A1
- Document ID: US20080301625A1
- Status: Published application
- Kind: A1
- Application number: 12/113,558
- Filed: 2008-05-01
- Published: 2008-12-04
- Earliest claimed: 2007-05-01
- Assignees: BEA Systems, Inc.
- Inventors: Thomas A. Cook; Troy Beecroft; Thomas Carl Stamm
- Web page: https://patentgrep.com/patent/US20080301625A1

## CPC

- G06F 8/20: Software design
- G06F 8/24: {Object-oriented}
- G06F 8/36: Software reuse
- G06F 8/10: Requirements analysis; Specification techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An abstract component model can be used to drive an editor by providing an underlying stateful model for component implementation without the need to re-implement details, such as event listening, lifecycle and update management, etc. An implementation needs to provide objects that make up the model, some logic to listen to environmental changes and recognize when an update is needed, and a builder which can generate a lightweight version of the model based on the current “state of the world.” In addition, abstract component model is operable to support an editor such as page flow.

## Claims

### Claim 1

A computer enabled abstract component model system for applications and Web-based services, comprising:
a abstract component model to represent one or more artifacts to be modeled;
an event adapter to listen to a relevant change and start an update to the abstract component model when the relevant change is detected;
a structure builder operable to build one or more structure objects based on the relevant change that can be used to update the abstract component model; and
a model manager adapted to provide the abstract component model to a caller.

### Claim 2 (depends on 1)

The computer enabled abstract component model system according to claim 1, further comprising:
another abstract component model to represent:
the artifacts to be modeled; or
other artifacts to be modeled.

### Claim 3 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
the abstract component model manages one or more model objects.

### Claim 4 (depends on 3)

The computer enabled abstract component model system according to claim 3, wherein:
the model objects have child model objects and attributes, wherein the attributes of model objects are updated based on a structure object and the attributes know how to fire events when they change.

### Claim 5 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
the abstract component model manages one or more event listener to the abstract component model.

### Claim 6 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
the event adapter is capable of:
coalescing multiple events into one update;
listening to the environment and knowing what events are important to respond.

### Claim 7 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
an update cycle of the abstract component model contains at least a structure build phase and an update phase.

### Claim 8 (depends on 13)

The computer enabled abstract component model system according to claim 13, wherein:
during the update phase, one or more of the following happens:
the abstract component model is changed;
the plurality of model objects is created or deleted;
attributes of the plurality of model objects are changed; and
one or more of the plurality of model objects are created or deleted.

### Claim 9 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
the structure objects are light weight objects with child objects.

### Claim 10 (depends on 17)

The computer enabled abstract component model system according to claim 17, wherein:
the structure objects are created based on the state of environment and is a “snapshot” representation of how the abstract component model should look like after being updated.

### Claim 11 (depends on 19)

The computer enabled abstract component model system according to claim 19, wherein:
the structure objects are created to mirror the parent-child relationships of the model objects.

### Claim 12 (depends on 1)

The computer enabled abstract component model system according to claim 1, further comprising:
a structure root that tracks a list of dependent models.

### Claim 13 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
the model manager is operable to:
instantiate the abstract component model from the plurality of artifacts; and
call to activate the event adapter.

### Claim 14 (depends on 1)

The computer enabled abstract component model system according to claim 1, further comprising:
a model updater operable to:
update each of the plurality of model objects after they are created;
update the model objects based on the structure objects in a top-down, depth-first fashion; or
generate a model update set after updating each model objects, wherein the model update set compromising one or any combination of:
a current list of child objects of each type;
a list of structure objects that should be used to update or create objects of each type; and
a factory to create new objects based on a structure.

### Claim 15 (depends on 1)

The computer enabled abstract component model system according to claim 1, further comprising:
a request runner operable to inform the abstract component model when to start and/or stop the update.

### Claim 16 (depends on 15)

The computer enabled abstract component model system according to claim 15, wherein:
the request runner is capable of grouping nested calls into a single edit transaction.

### Claim 17 (depends on 15)

The computer enabled abstract component model system according to claim 15, wherein:
the request runner is a nested request runner, wherein the nested request runner is capable of self-detecting and not trying to start a different edit transaction.

### Claim 18 (depends on 15)

The computer enabled abstract component model system according to claim 15, wherein:
the request runner runs on the Standard Widget Toolkit (SWT) display thread.

### Claim 19 (depends on 15)

The computer enabled abstract component model system according to claim 15, wherein:
multiple request runners are operable to be included in one edit transaction by a caller.

### Claim 20 (depends on 1)

The computer enabled abstract component model system according to claim 1, wherein:
the abstract component model is used to drive an editor, wherein the editor can be one of: a visual design surface, a wizard, or a page flow.

### Claim 21 (depends on 1)

The system according to claim 1, wherein:
the event adapter is operable to listen to the relevant change to a file on a disk or a type system in an Integrated Design Environment (IDE).

### Claim 22

A method to support an abstract component model for applications and Web-based services, comprising:
listening to an environment change and starting an update to an abstract component model that represents one or more artifacts to be modeled when the environment change is detected;
building structure objects based on the environment change;
updating the abstract component model using the structure objects; and
providing the abstract component model to contain and support the model objects.

### Claim 23 (depends on 22)

The method according to claim 22, further compromising:
receiving a request call from a caller.

### Claim 24 (depends on 23)

The method according to claim 23, further compromising one of:
instantiating an abstract component model from the artifacts if not exist;
grouping nested calls into a single edit transaction;
coalescing multiple events into one update; and
activating the event adapter to listening to the environment if not activated.

### Claim 25 (depends on 22)

The method according to claim 22, wherein:
the update is started only when important events are detected.

### Claim 26 (depends on 22)

The method according to claim 22, wherein:
an update cycle contains at least a structure build phase and an update phase.

### Claim 27 (depends on 22)

The method according to claim 22, wherein:
the abstract component model manages one or more model objects, wherein the model objects are organized in a tree structure and the abstract component model is updated in a top-down, depth-first fashion.

### Claim 28 (depends on 27)

The method according to claim 27, further comprising one of:
updating each of the model objects based on the structure objects;
generating model object update set after updating each of the model objects, wherein the update set generated by an updated parent model object can be used to update children model objects of the updated parent model object;
deleting from an abstract component model, at the end of an update cycle, all model objects if not created or updated during the update cycle.

### Claim 29 (depends on 22)

The method according to claim 22, further comprising:
using the abstract component model to drive an editor;
creating or deleting the model objects during an update phase of an update cycle of the abstract component model;
changing attributes of the model objects and creating or deleting one or more of model objects during the update phase; and
changing the abstract component model only during the update phase.
listening to the environment change in an Integrated Design Environment (IDE), wherein the environment change is a change to a file on a disk or a type system.

### Claim 30 (depends on 22)

The method according to claim 22, further comprising:
changing relevant source artifacts before updating the abstract component model to ensure the consistency between the source artifacts and the abstract component model.

### Claim 31 (depends on 22)

The method according to claim 22, further comprising:
batching up events resulting from updates of model objects and firing the events after the updates are finished.

### Claim 32

A machine readable medium having instructions stored thereon that when executed cause a system to:
represent a plurality of artifacts to be modeled via the abstract component model;
listen to an environment change and start an update to the abstract component model when the environment change is detected;
build structure objects based on the environment change;
update the abstract component model using the structure objects; and
provide the abstract component model to contain and support the plurality of model objects.
