Ejemplo n.º 1
0
def get_spatial_lattice(*args):
    lattice = cacher.get_object(SpatialLattice.NAME,
                                SpatialLattice,
                                args,
                                SpatialLattice.FLAG,
                                SpatialLattice.IS_SKIPPED)
    return lattice
Ejemplo n.º 2
0
def get_spatial_graphs_sets(*args):
    spatial_graphs_sets = cacher.get_object(SpatialGraphsSets.NAME,
                                            SpatialGraphsSets,
                                            args,
                                            SpatialGraphsSets.FLAG,
                                            SpatialGraphsSets.IS_SKIPPED)
    return spatial_graphs_sets
Ejemplo n.º 3
0
def get_spatial_paths_set_2d(*args):
    spatial_paths_set_2d = cacher.get_object(SpatialPathsSet2d.NAME,
                                             SpatialPathsSet2d,
                                             args,
                                             SpatialPathsSet2d.FLAG,
                                             SpatialPathsSet2d.IS_SKIPPED)
    return spatial_paths_set_2d
def get_spatiotemporal_paths_sets_4d(*args):
    spatiotemporal_paths_sets_4d = cacher.get_object(
                                        SpatiotemporalPathsSets4d.NAME,
                                        SpatiotemporalPathsSets4d,
                                        args,
                                        SpatiotemporalPathsSets4d.FLAG,
                                        SpatiotemporalPathsSets4d.IS_SKIPPED)
    return spatiotemporal_paths_sets_4d
Ejemplo n.º 5
0
def get_directions(*args):
    """Fetchs Directions if already cached, else builds Directions.
    """
    directions = cacher.get_object(Routes.NAME,
                                   Routes,
                                   args,
                                   Routes.FLAG,
                                   Routes.IS_SKIPPED)
    return directions