view topology/TopologyDataGear.cs @ 58:0d2c956060d8

add topology manager
author KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
date Tue, 25 Jan 2022 22:35:25 +0900
parents
children c4f8630b7822
line wrap: on
line source

using System;
using System.Net;
using System.Collections;
using System.Collections.Generic;

namespace Christie_net.topology.TopologyDataGear {
    
    public class TopologyDataGear /*: Cloneable*/{
    String nodeName;
    int totalNodeNum;
    //List<String> connectionList = new ArrayList<>();
    List<String> connectionList = new List<String>();


    public TopologyDataGear(){}

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setTotalNodeNum(int totalNodeNum) {
        this.totalNodeNum = totalNodeNum;
    }

    public int getTotalNodeNum() {
        return totalNodeNum;
    }

    public void addConnection(String connectionName) {
        this.connectionList.Add(connectionName);
    }

    public List<String> getConnectionList() {
        return connectionList;
    }

    
    
    /*
    public TopologyDataGear clone(){

        TopologyDataGear cloneTopoDG = new TopologyDataGear();
        try {
            cloneTopoDG = (TopologyDataGear)super.clone();
        }catch (Exception e){
            e.printStackTrace();
        }
        return cloneTopoDG;
    }
    */
    }
}