public override List <AttributeGXL> toAttributes()
        {
            List <AttributeGXL> attributes = new List <AttributeGXL>();
            AttributeGXL        attValence = new AttributeGXL("int", "valence", valence.ToString());

            attributes.Add(attValence);
            return(attributes);
        }
Exemplo n.º 2
0
        public override List <AttributeGXL> toAttributes()
        {
            List <AttributeGXL> attributes = new List <AttributeGXL>();
            AttributeGXL        attChem    = new AttributeGXL("string", "chem", chemSym.ToString());

            attributes.Add(attChem);

            return(attributes);
        }
Exemplo n.º 3
0
        public override List <AttributeGXL> toAttributes()
        {
            List <AttributeGXL> attributes = new List <AttributeGXL>();
            AttributeGXL        attX       = new AttributeGXL("double", "label", val.ToString());


            attributes.Add(attX);

            return(attributes);
        }
        public override List <AttributeGXL> toAttributes()
        {
            List <AttributeGXL> attributes = new List <AttributeGXL>();
            AttributeGXL        attChem    = new AttributeGXL("string", "type", type.ToString());

            attributes.Add(attChem);
            attChem = new AttributeGXL("string", "sequence", seq.ToString());
            attributes.Add(attChem);

            return(attributes);
        }
Exemplo n.º 5
0
        public override List <AttributeGXL> toAttributes()
        {
            List <AttributeGXL> attributes = new List <AttributeGXL>();
            AttributeGXL        attX       = new AttributeGXL("double", "x", x.ToString());
            AttributeGXL        attY       = new AttributeGXL("double", "y", y.ToString());
            AttributeGXL        attType    = new AttributeGXL("string", "type", type);

            attributes.Add(attX);
            attributes.Add(attY);
            attributes.Add(attType);

            return(attributes);
        }
        public override List <AttributeGXL> toAttributes()
        {
            List <AttributeGXL> attributes = new List <AttributeGXL>();

            if ((frequency == type.Count) && (frequency == angle.Count))
            {
                AttributeGXL attFrequency = new AttributeGXL("int", "frequency", frequency.ToString());
                attributes.Add(attFrequency);
                for (int i = 0; i < frequency; i++)
                {
                    AttributeGXL attType  = new AttributeGXL("string", "type" + i, type[i]);
                    AttributeGXL attAngle = new AttributeGXL("string", "angle" + i, angle[i]);
                    attributes.Add(attType);
                    attributes.Add(attAngle);
                }
            }
            return(attributes);
        }