1 package org.simantics.spreadsheet.graph.synchronization;
3 import java.io.Serializable;
5 import org.simantics.structural.synchronization.base.ComponentBase;
7 import gnu.trove.map.hash.THashMap;
8 import gnu.trove.procedure.TObjectProcedure;
10 public class SheetLineComponent extends ComponentBase<SheetLineComponent> implements Serializable {
12 private static final long serialVersionUID = 1777515716175831266L;
14 private THashMap<String, SheetLineComponent> childMap = new THashMap<>();
16 public SheetLineComponent(String uid) {
20 // public SheetLineComponent(String uid, String solverComponentName, int componentId) {
22 // this.solverComponentName = solverComponentName;
23 // this.componentId = componentId;
27 public THashMap<String, SheetLineComponent> getChildMap() {
32 public void setChildMap(THashMap<String, SheetLineComponent> newChildMap) {
33 childMap = newChildMap;
34 if(childMap != null) {
35 childMap.forEachValue(new TObjectProcedure<SheetLineComponent>() {
37 public boolean execute(SheetLineComponent component) {
38 component.parent = SheetLineComponent.this;
46 public String toString() {
47 return solverComponentName + " (" + super.toString() + ")";