Пример #1
0
def tunnel(name, nodepairs, back, fwd):
    """
    Make a series of bf nodes forming a tunnel
    """

    name_ = name + ':'
    ret = []
    for i in range(len(nodepairs)):
        if i == 0:
            b = back
        else:
            b = name_ + str(i-1) + 'b'
            
        if i == len(nodepairs)-1:
            f = fwd
        else:
            f = name_ + str(i+1) + 'f'
            
        nodef = bf(
                    name_ + str(i) + 'f',
                    nodepairs[i][0],
                    name_ + str(i) + 'b',
                    f
                    )
        nodeb = bf(
                    name_ + str(i) + 'b',
                    nodepairs[i][1],
                    name_ + str(i) + 'f',
                    b
                    )
        ret += [ nodef, nodeb ]

    return ret
Пример #2
0
def tunnel(name, nodepairs, back, fwd):
    """
    Make a series of bf nodes forming a tunnel
    """

    name_ = name + ':'
    ret = []
    for i in range(len(nodepairs)):
        if i == 0:
            b = back
        else:
            b = name_ + str(i - 1) + 'b'

        if i == len(nodepairs) - 1:
            f = fwd
        else:
            f = name_ + str(i + 1) + 'f'

        nodef = bf(name_ + str(i) + 'f', nodepairs[i][0], name_ + str(i) + 'b',
                   f)
        nodeb = bf(name_ + str(i) + 'b', nodepairs[i][1], name_ + str(i) + 'f',
                   b)
        ret += [nodef, nodeb]

    return ret
Пример #3
0
def tunneloneway(name, nodes, back, fwd):
    """
    Make a series of bf nodes forming a one-way tunnel
    """
    name_ = name + ':'
    ret = []
    for i in range(len(nodes)):
        if i == len(nodes) - 1:
            f = fwd
        else:
            f = name_ + str(i + 1)

        ret += [bf(name_ + str(i), nodes[i], back, f)]

    return ret
Пример #4
0
def tunneloneway(name, nodes, back, fwd):
    """
    Make a series of bf nodes forming a one-way tunnel
    """
    name_ = name + ':'
    ret = []
    for i in range(len(nodes)):
        if i == len(nodes)-1:
            f = fwd
        else:
            f = name_ + str(i+1)

        ret += [
            bf(
                name_ + str(i),
                nodes[i],
                back,
                f
            )]

    return ret
Пример #5
0
    ),
    
    lr('playroom_right',    jul12(27),  'playroom_left',                        'hall:n'),
    lr('playroom_left',     jul12(25),  'hall:n',                               'playroom_right'),

    nesw('livingroom',
        ni = nov12(497),
        ei = nov12(494),
        si = nov12(495),    s = 'stereo_s',
        wi = nov12(496),    w = 'hall:w'
         ),

    lfr('stereo_s', nov12(498), 'stereo_e',     'menu_stereo',  'livingroom:n'),
    lfr('stereo_e', nov12(500), 'livingroom:n', 'porch:e',      'stereo_s'),
                            
    bf('porch:e',           jul12(37),   'porch:w',          'porch:e'),
    bf('porch:w',           jul12(41),   'porch:e',          'livingroom:n'),

    bf('diningroom_in',     r'C:\img\vol1\20010405\dscf0015.jpg',   'diningroom_out',   'diningroom_in'),
    bf('diningroom_out',    r'C:\img\vol1\20010508a\dscf0016.jpg',  'diningroom_in',    'hall:e'),

    nesw('front43',
        ni = nov4(17),
        ei = nov4(18),      e = 'allerton_hawthorne:e',
        si = nov10(381),    s = 'hall:s',
        wi = nov4(16),      w = 'markliesl:w'
    ),

    nesw('markliesl',
        ni = nov4(20),
        ei = nov4(21),  e = 'front43:e',
Пример #6
0
     s='playroom_right',
     wi=jul12(30),
     w='diningroom_in',
 ),
 lr('playroom_right', jul12(27), 'playroom_left', 'hall:n'),
 lr('playroom_left', jul12(25), 'hall:n', 'playroom_right'),
 nesw('livingroom',
      ni=nov12(497),
      ei=nov12(494),
      si=nov12(495),
      s='stereo_s',
      wi=nov12(496),
      w='hall:w'),
 lfr('stereo_s', nov12(498), 'stereo_e', 'menu_stereo', 'livingroom:n'),
 lfr('stereo_e', nov12(500), 'livingroom:n', 'porch:e', 'stereo_s'),
 bf('porch:e', jul12(37), 'porch:w', 'porch:e'),
 bf('porch:w', jul12(41), 'porch:e', 'livingroom:n'),
 bf('diningroom_in', r'C:\img\vol1\20010405\dscf0015.jpg', 'diningroom_out',
    'diningroom_in'),
 bf('diningroom_out', r'C:\img\vol1\20010508a\dscf0016.jpg',
    'diningroom_in', 'hall:e'),
 nesw('front43',
      ni=nov4(17),
      ei=nov4(18),
      e='allerton_hawthorne:e',
      si=nov10(381),
      s='hall:s',
      wi=nov4(16),
      w='markliesl:w'),
 nesw('markliesl',
      ni=nov4(20),