MetaEdge

Namespace: Itinero
We found 10 examples in language CSharp for this search. You will see 11 fragments of code.
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;

namespace ST.IoT.Data.Stlth.Model
{
    public class MetaEdge
    {
        public JObject MEC { get; private set; }

        public List<JObject> METs { get; private set; }


        public string Name
        {
            get { return MEC["data"]["Name"].ToString(); }
        }

        public Dictionary<string, string> Types
        {
            get { return METs.Select(m => m["data"]["Name"].ToString()).ToDictionary(i => i); }
        }

        public MetaEdge(JObject mec, JObject met)
        {
            MEC = mec;
            METs = new List<JObject> () { met };
        }
    }
}


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }


        /// <summary>
        /// Adds a new edge.
        /// </summary>
        public void Add(MetaEdge edge)
        {
            _edgesCount++;
            if (_edgesCount >= _edges.Length)
            {
                System.Array.Resize(ref _edges, _edgesCount * 2);
            }
            _edges[_edgesCount - 1] = edge;
        }

        /// <summary>
        /// Clears this vertex info.
        /// </summary>
        public void Clear()
        {
            _edgesCount = 0;
            _shortcuts.Clear();

            this.Vertex = Constants.NO_VERTEX;
        }


        /// <summary>
        /// Returns a string representing this edge.
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("{0} - {1}",
                this.Neighbour,
                this.Data.ToInvariantString());
        }

Itinero.Graphs.Directed.MetaEdge : Object

Constructors :

public MetaEdge()

Methods :

public UInt32 get_Neighbour()
public Void set_Neighbour(UInt32 value = )
public UInt32[] get_Data()
public Void set_Data(UInt32[] value = )
public UInt32[] get_MetaData()
public Void set_MetaData(UInt32[] value = )
public UInt32 get_Id()
public Void set_Id(UInt32 value = )
public String ToString()
public Type GetType()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()