/* AbstractSpace.java * * Copyright (c) 1999-2001, Ted Nelson and Tuomas Lukka * * This file is part of Gzz. * * Gzz is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Gzz is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with Gzz; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * */ /* * Written by Tuomas Lukka and Tuukka Hastrup */ package org.fenfire.impl; import org.fenfire.*; import org.fenfire.util.*; //import org.fenfire.errors.*; import com.hp.hpl.mesa.rdf.jena.vocabulary.RDF; import com.hp.hpl.mesa.rdf.jena.model.*; import com.hp.hpl.mesa.rdf.jena.common.*; /** An abstract implementation of Space, which * provides the methods that need to be implemented in a certain way * to conform to the Space interface. * No assumptions about anything are made. */ public abstract class AbstractSpace implements Space{ public static final String rcsid = "$Id: AbstractSpace.java,v 1.1 2003/03/27 02:26:40 mudyc Exp $"; protected ModularNodeTexter nodeTexter; protected JavaObjector javaObjector; protected ObsTrigger obsTrigger; protected Model model; public AbstractSpace(ModularNodeTexter nodeTexter, ObsTrigger obsTrigger, Model model) { this.nodeTexter = nodeTexter; this.obsTrigger = obsTrigger; this.model = model; } public NodeTexter getNodeTexter() { return nodeTexter; } public JavaObjector getJavaObjector() { return javaObjector; } public ObsTrigger getObsTrigger() { return obsTrigger; } public Model getModel() { return model; } /* public Dim getDim(String s) { return getDim(getNode(s)); } abstract public Dim getCloneDim(); public final Node N() { return N(getHomeNode()); } public Node getIdentity(String s) { throw new UnsupportedOperationException("not implemented"); } public Node getIdentity(Node c) { throw new UnsupportedOperationException("not implemented"); } final public Node N(Node c, Node dim, int dir, Obs o) { return N(c, getDim(dim), dir, o); } */ public org.nongnu.storm.Mediaserver getMediaserver() { return null; } public RDFNode getMSBlockNode(String msid, RDFNode node) { return null; } public RDFNode clone(RDFNode nodeToClone) { return ShortRDF.getDataClone(model, nodeToClone); } }