public GridState(Node[,] nodes, Position dataLocation, ClusterSetup cluster) { Debug.Assert(nodes.GetLength(0) == cluster.XDim && nodes.GetLength(1) == cluster.YDim); Nodes = nodes; DataLocation = dataLocation; Cluster = cluster; }
protected bool Equals(ClusterSetup other) { return(XDim == other.XDim && YDim == other.YDim && Equals(AccessNode, other.AccessNode)); }