package info.oais.implementation.infomodel;

import info.oais.interfaces.infomodel.RepresentationInformationNetwork;
import info.oais.interfaces.infomodel.poss1RepInfo.possRepInfoNetwork.AcyclicDirectedGraph;
import info.oais.interfaces.infomodel.poss1RepInfo.possRepInfoNetwork.RootVertex;
import java.io.Serializable;

/**
 * This is RepresentationInformation which can contain a RepresentationInformationNetwork (RIN).
 * 
 * @author David
 *
 */
public class RepresentationInformationNetworkImpl1 extends RepresentationInformationImpl1
		implements RepresentationInformationNetwork, AcyclicDirectedGraph, Serializable {
	
	/**
	 * For serialising object
	 */
	private static final long serialVersionUID = -5688872469674766429L;
	
	/**
	 * The root Vertex for the RIN
	 */
	private RootVertex rootVertex = null;
	

	/**
	 * Create the RIN given the RootVertex
	 * 
	 * @param rv The RootVertex to set for the RIN.
	 */
	public RepresentationInformationNetworkImpl1(RootVertex rv) {
		super();
		this.rootVertex = rv;
	}

	/**
	 * Get the Root Vertex for the RIN.
	 * 
	 * @return The RootVertex for the RIN.
	 */
	@Override
	public RootVertex getRootVertex() {
		return rootVertex;
	}

	/**
	 * Set the RootVertex for the RIN.
	 * 
	 * @param rv The RootVertex for the RIN
	 */
	@Override
	public void setRootVertex(RootVertex rv) {
		rootVertex = rv;
		
	}

}
