Abstract
This technical report presents an Object Based Constraint Management (OBCM) system designed for multi-user collaborative environments. Moving beyond traditional value-based constraint systems that link simple variables, the proposed framework treats constraints as high-level object services. This approach enables the management of complex behaviors and concurrent user actions through method constraints and a brokered architecture. The system was implemented within the Shastra collaborative environment, demonstrating effective consistency maintenance in medical imaging and geometric modeling applications without requiring restrictive serialization.
Introduction
In the mid-1990s, building collaborative applications—such as shared CAD tools or medical imaging suites—presented a significant challenge in consistency maintenance. When multiple users interact with the same data from different locations, the system must resolve conflicting actions and ensure all views remain synchronized.
Existing systems of the era, such as Garnet or Rendezvous, were primarily "value-based." They functioned by linking data variables: if variable $x$ changed, the system automatically updated variable $y$. While effective for simple UI tasks, this model struggled with the heterogeneity of complex objects, the need for concurrent modifications without "turn-taking" locks, and the inability to easily constrain object behaviors or methods.
The Object Service Model
The authors propose a shift toward an Object Service Model, where the constraint system acts as an independent service layer. This architecture is built on three pillars:
- Brokered Architecture: Inspired by Object Request Brokers (ORB), a central broker routes constraint requests to specialized solvers. This modularity allows the system to handle diverse constraints—from simple linear equations to complex geometric continuity—by plugging in the appropriate solver.
- Method Constraints: Unlike traditional systems, OBCM can constrain methods or functions. For example, a constraint can dictate that if one user triggers a "smooth surface" operation, other users' views must automatically trigger a "re-render" function. This allows for semantic synchronization of actions rather than just raw data.
- Separation of Concerns: Application developers do not need to implement solvers. They simply "export" their objects to the constraint service, which manages the underlying logic.
Concurrency Control
A core technical contribution is the Concurrent Modification Algorithm. To avoid the frustration of "turn-taking" (serialization), the authors developed a two-pass marking algorithm using Depth First Search (DFS) to handle simultaneous edits to the constraint graph:
- First Pass (Green): Reachable nodes are marked with a timestamp. If two users attempt to modify the same node, the earlier timestamp is prioritized.
- Second Pass (Red): The system finalizes a solution graph (a Directed Acyclic Graph) for execution. This approach integrates concurrency control directly into the solver, allowing for "optimistic" editing where the system only intervenes if a direct logical conflict occurs.
Results and Applications
The framework was evaluated within the Shastra environment across several complex domains, including medical imaging (VAIDAK), surface modeling (ISMA), and physical analysis (BHAUTIK).
Key results include:
- Master-Slave Visualization: In the VAIDAK toolkit, a "master" user can control a 3D view while "slave" views are updated via view-view constraints. Crucially, slave users retain the ability to adjust local parameters independently.
- Collaborative Smoothing: In the ISMA toolkit, the system can automate social protocols. If one user edits a shared boundary of a partitioned 3D object, an "access constraint" can trigger a dialog box on the other user's screen to request agreement.
- Cross-Tool Linking: The system successfully linked a solid modeler (SHILP) to a physical analysis tool (BHAUTIK). Changes to a bone model's geometry automatically triggered the generation of a new finite element mesh for analysis.
Conclusion and Future Work
The OBCM system demonstrated that treating constraints as high-level services significantly improves the flexibility and responsiveness of collaborative software. However, limitations remain. The system primarily handles one-way constraints, and the authors noted the need for a more formal developer interface. Future work aims to address multi-way constraints and explore the scalability of the architecture in larger distributed systems.
Summary updated