Containment agnostic, N-ary roots leveraged model synchronization
AssigneeInternational Business Machines Corporation
InventorsRohit Bahl, Alan Yeung
Life of this patent
Estimating the term…
Abstract
A technique for annotating and synchronizing on a device is provided. A client root model of fragments is marked with annotations in response to triggers received by an application of the device. Marking the client root model of the fragments with annotations includes at least: in response to the any of the fragments being extracted out and flagged, marking the client root model with annotations; in response to binding any of the fragments to a source, marking the client root model of the fragments with annotations and marking the client root model as flagged; and in response to sharing in any the of fragments, marking the client root model with annotations.
Claims24
A method for annotating and synchronizing on a device, comprising:
- marking a client root model of a plurality of fragments with annotations in response to triggers received by an application of the device, the triggers comprising extract artifact, convert to synchronizable, and share the artifact;
- wherein marking the client root model of the plurality of fragments with annotations comprises:
- in response to any of the plurality of fragments being extracted out and flagged with an extracted out flag, marking the client root model with annotations;
- in response to binding any of the plurality fragments to a source being a supplier model, marking the client root model of the plurality of fragments with annotations and marking the client root model as flagged;
- and
- in response to sharing in any of the plurality of fragments, marking the client root model with annotations;
- determining, by the application of the device, the client root model having the supplier model as the source for the client model;
- and
- rejecting, by the application of the device, the client root model during a synchronization process based on the client model having the extracted out flag in which the extracted out flag causes the client root model to be excluded.
A device for annotating and synchronizing, comprising:
- memory for storing a program;
- and
- a processor, functionally coupled to the memory, the processor being responsive to computer-executable instructions contained in the program and operative for:
- marking a client root model of a plurality of fragments with annotations in response to triggers received by the program, the triggers comprising extract artifact, convert to synchronizable, and share the artifact;
- wherein marking the client root model of the plurality of fragments with annotations comprises:
- in response to any of the plurality of fragments being extracted out and flagged with an extracted out flag, marking the client root model with annotations;
- in response to binding any of the plurality fragments to a source being a supplier model, marking the client root model of the plurality of fragments with annotations and marking the client root model as flagged;
- and
- in response to sharing in any of the plurality of fragments, marking the client root model with annotations and marking the client root model as flagged;
- determining the client root model having the supplier model as the source for the client root model;
- and
- rejecting the client root model during a synchronization process based on the client root model having the extracted out flag in which the extracted out flag causes the client root model to be excluded.
A computer program product, tangibly embodied on a non-transitory computer readable medium, the computer program product including instructions for causing a computer to execute a method for annotating and synchronizing, comprising:
- marking a client root model of a plurality of fragments with annotations in response to triggers received, wherein marking the client root model of the plurality of fragments with annotations comprises:
- in response to any of the plurality of fragments being extracted out and flagged, marking the client root model with annotations;
- in response to binding any of the plurality fragments to a source, marking the client root model of the plurality of fragments with annotations and marking the client root model as flagged;
- and
- in response to sharing in any of the plurality of fragments, marking the client root model with annotations and marking the client root model as flagged;
- in response to a request to synchronize the plurality of fragments being shared by a sharing client model, finding annotations in the client root model of the plurality of fragments referring to a supplier model;
- and
- synchronizing 1-J of the plurality of fragments, wherein J is a last of the plurality of fragments being synchronized, wherein synchronizing occurs for each of the plurality of fragments and synchronizing for each of the plurality of fragments comprises:
- scanning the supplier model to match a supplier file to a processing fragment of the plurality of fragments, wherein when the supplier file is matched in the supplier model, the scanning stops;
- for the supplier file, creating an ancestor containment hierarchy, wherein the ancestor containment hierarchy starts with the supplier file and ends at a supplier primary root of the supplier model;
- creating a copy of the supplier file in a temporary framework reflecting the supplier model;
- and
- if it determined that there is reference to a foreign element in the supplier file, resolving the foreign element when synchronizing at least one of a previous processing fragment and subsequent processing fragment, wherein a containment hierarchy of the foreign element is added in the temporary framework.
Dependencies are inferred from the claim text.