You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Information_Management_System/Arc.py

15 lines
362 B

#!/usr/bin/python
# -*- coding: UTF-8 -*-
class Arc:
def __init__(self, argv):
self.id = int(argv[0])
self.from_node = int(argv[1])
self.to_node = int(argv[2])
self.len = float(argv[3])
self.road_class = argv[4]
self.geometry_list = [float(ele) for ele in argv[5:9]]
self.direction = float(argv[9])