package ckelling.baukasten;

import java.util.*;

/**
 *  Klasse, um Rechnerkomponenten mitzuteilen, welche
 *  Komponenten an ihnen angeschlossen sind.
 *  Beinhaltet ein Editor_Source und einen Typ
 *  (IN, OUT, INOUT oder andere).
 *
 *  @author   Carsten Kelling
 *  @version  0.1.0, 01.08.97
 */
public class Connection extends Editor_Source
{
	private int type;

	public Connection(RechnerKomponente rk, int type)
	{
		super(rk);
		this.type = type;
	}

	public Connection(RechnerKomponentePanel rkp, int type)
	{
		super(rkp);
		this.type = type;
	}

	public Connection(Editor_Source source, int type)
	{
		super(source);
		this.type = type;
	}
	
	public int getType()
	{
		return type;
	}
	
	public void setType(int newType)
	{
		type = newType;
	}
	
} /* end Connection */
