X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2Fold%2FOldTransferableGraph1.java;fp=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2Fold%2FOldTransferableGraph1.java;h=0000000000000000000000000000000000000000;hb=f5d579079d4a49913256d6fb907ed748f80b3312;hp=b68bea31ec4f4827768a3f1dfd39ba20d1b31907;hpb=a51d73068762e87d514532103bd13ff4e67347e7;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java deleted file mode 100644 index b68bea31e..000000000 --- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.graph.representation.old; - -import java.util.TreeMap; - -import org.simantics.databoard.Bindings; -import org.simantics.databoard.binding.Binding; -import org.simantics.databoard.binding.mutable.Variant; -import org.simantics.databoard.serialization.Serializer; -import org.simantics.graph.representation.External; -import org.simantics.graph.representation.Identity; -import org.simantics.graph.representation.Internal; -import org.simantics.graph.representation.Root; -import org.simantics.graph.tests.conversion.TransferableGraph0; - - -/** - * Transferable graph datatype. - * See specification. - * @author Hannu Niemist� - * - * @deprecated superceded by {@link TransferableGraph0} - */ -@Deprecated -public class OldTransferableGraph1 { - public static Binding BINDING = Bindings.getBindingUnchecked(OldTransferableGraph1.class); - public static Serializer SERIALIZER = Bindings.getSerializerUnchecked(BINDING); - - public int resourceCount; - public Identity[] identities; - public int[] statements; - public OldValue1[] values; - public TreeMap extensions; - - public OldTransferableGraph1() {} - - public OldTransferableGraph1(int resourceCount, Identity[] identities, - int[] statements, OldValue1[] values) { - this(resourceCount, identities, statements, values, - new TreeMap()); - } - - public OldTransferableGraph1(int resourceCount, Identity[] identities, - int[] statements, OldValue1[] values, TreeMap extensions) { - this.resourceCount = resourceCount; - this.identities = identities; - this.statements = statements; - this.values = values; - this.extensions = extensions; - } - - public void print() { - System.out.println("Identities"); - for(Identity id : identities) { - System.out.print(" " + id.resource + " = "); - if(id.definition instanceof Root) { - Root def = (Root)id.definition; - System.out.println("ROOT(" + def.name + ")"); - } - else if(id.definition instanceof External) { - External def = (External)id.definition; - System.out.println("EXTERNAL(" + def.parent + ", " + def.name + ")"); - } - else if(id.definition instanceof Internal) { - Internal def = (Internal)id.definition; - System.out.println("INTERNAL(" + def.parent + ", " + def.name + ")"); - } - } - System.out.println("Statements:"); - for(int i=0;i