~ubuntu-branches/ubuntu/oneiric/electric/oneiric

« back to all changes in this revision

Viewing changes to com/sun/electric/database/constraint/Constraints.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 * The methods here are overridden by the actual constraint solver.
43
43
 * At this time, there is only one solver: Layout.
44
44
 */
45
 
public abstract class Constraints
46
 
{
47
 
        private static Constraints curConstraint = new Layout();
 
45
public abstract class Constraints {
 
46
 
 
47
    private static Constraints curConstraint = new Layout();
48
48
 
49
49
//      /**
50
50
//       * Method to set a new current constraint system.
51
51
//       * @param con the constraint system to become the current one.
52
52
//       */
53
53
//      public static void setCurrent(Constraints con) { curConstraint = con; }
54
 
 
55
 
        /**
56
 
         * Method to return the current constraint system.
57
 
         * return the current constraint system.
58
 
         */
59
 
        public static Constraints getCurrent() { return curConstraint; }
60
 
 
61
 
        /**
62
 
         * Method to initialize a constraint system.
63
 
         */
64
 
        public void init() {}
65
 
        /**
66
 
         * Method to make a request of a constraint system (not used).
67
 
         * @param cmd the command request.
68
 
         */
69
 
        public void request(String cmd) {}
70
 
        /**
71
 
         * Method to examine a cell because it has changed.
72
 
         * @param cell the Cell to examine.
73
 
         */
74
 
        public void examineCell(Cell cell) {}
75
 
        /**
76
 
         * Method to give a constraint system a chance to run.
77
 
         */
78
 
        public void slice() {}
79
 
 
80
 
        /**
81
 
         * Method to handle the start of a batch of changes.
 
54
    /**
 
55
     * Method to return the current constraint system.
 
56
     * return the current constraint system.
 
57
     */
 
58
    public static Constraints getCurrent() {
 
59
        return curConstraint;
 
60
    }
 
61
 
 
62
    /**
 
63
     * Method to initialize a constraint system.
 
64
     */
 
65
    public void init() {
 
66
    }
 
67
 
 
68
    /**
 
69
     * Method to make a request of a constraint system (not used).
 
70
     * @param cmd the command request.
 
71
     */
 
72
    public void request(String cmd) {
 
73
    }
 
74
 
 
75
    /**
 
76
     * Method to examine a cell because it has changed.
 
77
     * @param cell the Cell to examine.
 
78
     */
 
79
    public void examineCell(Cell cell) {
 
80
    }
 
81
 
 
82
    /**
 
83
     * Method to give a constraint system a chance to run.
 
84
     */
 
85
    public void slice() {
 
86
    }
 
87
 
 
88
    /**
 
89
     * Method to handle the start of a batch of changes.
82
90
     * @param initialSnapshot snapshot before job changes.
83
 
         */
84
 
        public void startBatch(Snapshot initialSnapshot) {}
85
 
        /**
86
 
         * Method to handle the end of a batch of changes.
87
 
         */
88
 
        public abstract void endBatch(String userName);
89
 
 
90
 
        /**
91
 
         * Method to announce a change to a NodeInst.
92
 
         * @param ni the NodeInst that was changed.
93
 
         * @param oD the old contents of the NodeInst.
94
 
         */
95
 
        public void modifyNodeInst(NodeInst ni, ImmutableNodeInst oD) {}
96
 
        /**
97
 
         * Method to handle a change to an ArcInst.
98
 
         * @param ai the ArcInst that changed.
 
91
     */
 
92
    public void startBatch(Snapshot initialSnapshot) {
 
93
    }
 
94
 
 
95
    /**
 
96
     * Method to handle the end of a batch of changes.
 
97
     */
 
98
    public abstract void endBatch(String userName);
 
99
 
 
100
    /**
 
101
     * Method to announce a change to a NodeInst.
 
102
     * @param ni the NodeInst that was changed.
 
103
     * @param oD the old contents of the NodeInst.
 
104
     */
 
105
    public void modifyNodeInst(NodeInst ni, ImmutableNodeInst oD) {
 
106
    }
 
107
 
 
108
    /**
 
109
     * Method to handle a change to an ArcInst.
 
110
     * @param ai the ArcInst that changed.
99
111
     * @param oD the old contents of the ArcInst.
100
 
         */
101
 
        public void modifyArcInst(ArcInst ai, ImmutableArcInst oD) {}
102
 
        /**
103
 
         * Method to handle a change to an Export.
104
 
         * @param pp the Export that moved.
105
 
         * @param oD the old contents of the Export.
106
 
         */
107
 
        public void modifyExport(Export pp, ImmutableExport oD) {}
108
 
        /**
109
 
         * Method to announce a change to a Cell.
110
 
         * @param cell the Cell that was changed.
111
 
         * @param oD the old contents of the Cell.
112
 
         */
113
 
        public void modifyCell(Cell cell, ImmutableCell oD) {}
114
 
        /**
115
 
         * Method to announce a move of a Cell int CellGroup.
116
 
         * @param cell the cell that was moved.
117
 
         * @param oCellGroup the old CellGroup of the Cell.
118
 
         */
119
 
        public void modifyCellGroup(Cell cell, Cell.CellGroup  oCellGroup) {}
120
 
        /**
121
 
         * Method to announce a change to a Library.
122
 
         * @param lib the Library that was changed.
123
 
         * @param oldD the old contents of the Library.
124
 
         */
125
 
        public void modifyLibrary(Library lib, ImmutableLibrary oldD) {}
126
 
 
127
 
        /**
128
 
         * Method to handle the creation of a new ElectricObject.
129
 
         * @param obj the ElectricObject that was just created.
130
 
         */
131
 
        public void newObject(ElectricObject obj) {}
132
 
        /**
133
 
         * Method to handle the deletion of an ElectricObject.
134
 
         * @param obj the ElectricObject that was just deleted.
135
 
         */
136
 
        public void killObject(ElectricObject obj) {}
137
 
        /**
138
 
         * Method to handle the renaming of an ElectricObject.
139
 
         * @param obj the ElectricObject that was renamed.
140
 
         * @param oldName the former name of that ElectricObject.
141
 
         */
142
 
        public void renameObject(ElectricObject obj, Object oldName) {}
143
 
        /**
144
 
         * Method to request that an object be redrawn.
145
 
         * @param obj the ElectricObject to be redrawn.
146
 
         */
147
 
        public void redrawObject(ElectricObject obj) {}
148
 
 
149
 
        /**
150
 
         * Method to announce that a Library has been read.
151
 
         * @param lib the Library that was read.
152
 
         */
153
 
        public void readLibrary(Library lib) {}
154
 
        /**
155
 
         * Method to announce that a Library is about to be erased.
156
 
         * @param lib the Library that will be erased.
157
 
         */
158
 
        public void eraseLibrary(Library lib) {}
159
 
        /**
160
 
         * Method to announce that a Library is about to be written to disk.
161
 
         * @param lib the Library that will be saved.
162
 
         */
163
 
        public void writeLibrary(Library lib) {}
 
112
     */
 
113
    public void modifyArcInst(ArcInst ai, ImmutableArcInst oD) {
 
114
    }
 
115
 
 
116
    /**
 
117
     * Method to handle a change to an Export.
 
118
     * @param pp the Export that moved.
 
119
     * @param oD the old contents of the Export.
 
120
     */
 
121
    public void modifyExport(Export pp, ImmutableExport oD) {
 
122
    }
 
123
 
 
124
    /**
 
125
     * Method to announce a change to a Cell.
 
126
     * @param cell the Cell that was changed.
 
127
     * @param oD the old contents of the Cell.
 
128
     */
 
129
    public void modifyCell(Cell cell, ImmutableCell oD) {
 
130
    }
 
131
 
 
132
    /**
 
133
     * Method to announce a move of a Cell int CellGroup.
 
134
     * @param cell the cell that was moved.
 
135
     * @param oCellGroup the old CellGroup of the Cell.
 
136
     */
 
137
    public void modifyCellGroup(Cell cell, Cell.CellGroup oCellGroup) {
 
138
    }
 
139
 
 
140
    /**
 
141
     * Method to announce a change to a Library.
 
142
     * @param lib the Library that was changed.
 
143
     * @param oldD the old contents of the Library.
 
144
     */
 
145
    public void modifyLibrary(Library lib, ImmutableLibrary oldD) {
 
146
    }
 
147
 
 
148
    /**
 
149
     * Method to handle the creation of a new ElectricObject.
 
150
     * @param obj the ElectricObject that was just created.
 
151
     */
 
152
    public void newObject(ElectricObject obj) {
 
153
    }
 
154
 
 
155
    /**
 
156
     * Method to handle the deletion of an ElectricObject.
 
157
     * @param obj the ElectricObject that was just deleted.
 
158
     */
 
159
    public void killObject(ElectricObject obj) {
 
160
    }
 
161
 
 
162
    /**
 
163
     * Method to handle the renaming of an ElectricObject.
 
164
     * @param obj the ElectricObject that was renamed.
 
165
     * @param oldName the former name of that ElectricObject.
 
166
     */
 
167
    public void renameObject(ElectricObject obj, Object oldName) {
 
168
    }
 
169
 
 
170
    /**
 
171
     * Method to request that an object be redrawn.
 
172
     * @param obj the ElectricObject to be redrawn.
 
173
     */
 
174
    public void redrawObject(ElectricObject obj) {
 
175
    }
 
176
 
 
177
    /**
 
178
     * Method to announce that a Library has been read.
 
179
     * @param lib the Library that was read.
 
180
     */
 
181
    public void readLibrary(Library lib) {
 
182
    }
 
183
 
 
184
    /**
 
185
     * Method to announce that a Library is about to be erased.
 
186
     * @param lib the Library that will be erased.
 
187
     */
 
188
    public void eraseLibrary(Library lib) {
 
189
    }
 
190
 
 
191
    /**
 
192
     * Method to announce that a Library is about to be written to disk.
 
193
     * @param lib the Library that will be saved.
 
194
     */
 
195
    public void writeLibrary(Library lib) {
 
196
    }
 
197
 
164
198
    /**
165
199
     * Method to announce than Ids were renamed.
166
200
     * @param idMapper mapper from old Ids to new Ids.
167
201
     */
168
 
    public void renameIds(IdMapper idMapper) {}
169
 
    
 
202
    public void renameIds(IdMapper idMapper) {
 
203
    }
170
204
}