コード例 #1
0
import time
import datetime

import schedule

import atovrmnxclient as vc


client = vc.Client()

ats1ii = vc.ATS(client, 79)
ats1Ai = vc.ATS(client, 80)
ats1Ao = vc.ATS(client, 81)
ats1Bi = vc.ATS(client, 82)
ats1Bo = vc.ATS(client, 83)
ats1oo = vc.ATS(client, 84)
ats2ii = vc.ATS(client, 85)
ats2i = vc.ATS(client, 86)
ats2o = vc.ATS(client, 87)
ats2oo = vc.ATS(client, 88)

point1 = vc.Point(client, 73)
point2 = vc.Point(client, 74)

train1 = vc.Train(client, 39)
train2 = vc.Train(client, 40)

platform1A = vc.Platform((ats1Ai, ats1Ao), train=train1)
platform1B = vc.Platform((ats1Bi, ats1Bo), train=train2)
platform2 = vc.Platform((ats2i, ats2o))
コード例 #2
0
import time

import atovrmnxclient as vc

client = vc.Client()

ats1ii = vc.ATS(client, (79, 89, 99))
ats1Ai = vc.ATS(client, (80, 90, 100))
ats1Ao = vc.ATS(client, (81, 91, 101))
ats1Bi = vc.ATS(client, (82, 92, 102))
ats1Bo = vc.ATS(client, (83, 93, 103))
ats1oo = vc.ATS(client, (84, 94, 104))
ats2ii = vc.ATS(client, (85, 95, 105))
ats2i = vc.ATS(client, (86, 96, 106))
ats2o = vc.ATS(client, (87, 97, 107))
ats2oo = vc.ATS(client, (88, 98, 108))

point1 = vc.Point(client, 73)
point2 = vc.Point(client, 74)

train1 = vc.Train(client, 39)
train2 = vc.Train(client, 40)

platform1A = vc.Platform((ats1Ai, ats1Ao), train=train1)
platform1B = vc.Platform((ats1Bi, ats1Bo), train=train2)
platform2 = vc.Platform((ats2i, ats2o), restart=3)

section1A = vc.Section((None, ats1oo), train=train1)
section1B = vc.Section((None, ats1oo), train=train2)
section1_2 = vc.Section(((ats1Ao, ats1Bo), ats2i))
section2 = vc.Section((ats2ii, ats2oo))
コード例 #3
0
import atovrmnxclient as vc

client = vc.Client()

ats1Ai = vc.ATS(client, (80, 90, 100))
ats1Ao = vc.ATS(client, (81, 91, 101))
ats2i = vc.ATS(client, (86, 96, 106))
ats2o = vc.ATS(client, (87, 97, 107))

train1 = vc.Train(client, 39)

platform1A = vc.Platform((ats1Ai, ats1Ao), restart=3, train=train1)
platform2 = vc.Platform((ats2i, ats2o), restart=3)


def main():
    thread = client.connect()

    platform1A.start()

    thread.join()


if __name__ == '__main__':
    main()
コード例 #4
0
import time
import datetime

import schedule

import atovrmnxclient as vc

client = vc.Client()

ats1ii = vc.ATS(client, (79, 89, 99))
ats1Ai = vc.ATS(client, (80, 90, 100))
ats1Ao = vc.ATS(client, (81, 91, 101))
ats1Bi = vc.ATS(client, (82, 92, 102))
ats1Bo = vc.ATS(client, (83, 93, 103))
ats2i = vc.ATS(client, (86, 96, 106))
ats2o = vc.ATS(client, (87, 97, 107))

point1 = vc.Point(client, 73)
point2 = vc.Point(client, 74)

train1 = vc.Train(client, 39)
train2 = vc.Train(client, 40)

platform1A = vc.Platform((ats1Ai, ats1Ao), train=train1)
platform1B = vc.Platform((ats1Bi, ats1Bo), train=train2)
platform2 = vc.Platform((ats2i, ats2o))


def sequence1ii(train):
    if train == train1:
        point1.SetBranch(0)
コード例 #5
0
import atovrmnxclient as vc

client = vc.Client()

ats1Ai = vc.ATS(client, 80)
ats1Ao = vc.ATS(client, 81)
ats2i = vc.ATS(client, 86)
ats2o = vc.ATS(client, 87)

train1 = vc.Train(client, 39)

platform1A = vc.Platform((ats1Ai, ats1Ao), restart=3, train=train1)
platform2 = vc.Platform((ats2i, ats2o), restart=3)


def main():
    thread = client.connect()

    platform1A.start()

    thread.join()


if __name__ == '__main__':
    main()
コード例 #6
0
import time

import atovrmnxclient as vc


client = vc.Client()

ats1Ai = vc.ATS(client, 80)
ats2i = vc.ATS(client, 86)

train1 = vc.Train(client, 39)


def sequence(train):
    train.stop(550)
    time.sleep(3)
    train.start(400)


ats1Ai.forward = sequence
ats2i.forward = sequence


def main():
    thread = client.connect()

    train1.start(400)

    thread.join()

コード例 #7
0
import time

import atovrmnxclient as vc


client = vc.Client()

ats1Ai = vc.ATS(client, (80, 90, 100))
ats2i = vc.ATS(client, (86, 96, 106))

train1 = vc.Train(client, 39)


def sequence(train):
    train.stop(550)
    time.sleep(3)
    train.start(400)


ats1Ai.forward = sequence
ats2i.forward = sequence


def main():
    thread = client.connect()

    train1.start(400)

    thread.join()