void Awake()
 {
     //add a copy of TCPConnection to this game object
     myTCP = gameObject.AddComponent<TCPConnection>();
     sgen = gameObject.GetComponent<SubGenerator> ();
     Debug.Log("Attempting to connect..");
     myTCP.setupSocket();
 }
        public override string ToString()
        {
            Matrix alpha = new Matrix(1, this.NumberOfPhases);

            for (int i = 0; i < this.NumberOfPhases; i++)
            {
                alpha[0, i] = this.InitialDistribution[i];
            }

            return(SubGenerator.ToString() + Environment.NewLine + Environment.NewLine + alpha.ToString());
        }