예제 #1
0
def ERVisualiser(**dictArgs):
    """\
    - particleTypes
    - laws
    - simCyclesPerRedraw
    - extraWindowFurniture
    """
    #
    # Allow particleTypes to be overridden
    #
    args = dict(dictArgs)
    particleTypes = {
        "entity": PEntity,
        "relation": PRelation.Relation,
        "isa": PISA.Isa,
        "attribute": PAttribute.Attribute,
    }
    #    particleTypes.update( (args.get("particleTypes",{})) )
    args["particleTypes"] = particleTypes
    args.pop("laws", None)
    return _TopologyViewer(laws=AxonLaws(),
                           simCyclesPerRedraw=3,
                           showGrid=False,
                           extraDrawing=ExtraWindowFurniture(),
                           **args)
예제 #2
0
def AxonVisualiser(**dictArgs):
    """\
    AxonVisualiserServer(...) -> new AxonVisualiserServer component.
    
    A specialisation of the TopologyViewerServer component for viewing
    Axon/Kamaelia systems.
    
    Keyword arguments are those for TopologyViewerServer, excluding:
    
    - particleTypes
    - laws
    - simCyclesPerRedraw
    - extraWindowFurniture
    """
    #
    # Allow particleTypes to be overridden
    #
    args = dict(dictArgs)
    particleTypes = {
        "component": PComponent,
        "inbox": PPostbox.Inbox,
        "outbox": PPostbox.Outbox
    }
    #    particleTypes.update( (args.get("particleTypes",{})) )
    args["particleTypes"] = particleTypes
    args.pop("laws", None)
    return _TopologyViewer(laws=AxonLaws(),
                           simCyclesPerRedraw=3,
                           extraDrawing=ExtraWindowFurniture(),
                           **args)
예제 #3
0
def AxonVisualiser( **dictArgs):
    """\
    AxonVisualiserServer(...) -> new AxonVisualiserServer component.
    
    A specialisation of the TopologyViewerServer component for viewing
    Axon/Kamaelia systems.
    
    Keyword arguments are those for TopologyViewerServer, excluding:
    
    - particleTypes
    - laws
    - simCyclesPerRedraw
    - extraWindowFurniture
    """
    #
    # Allow particleTypes to be overridden
    #
    args = dict(dictArgs)
    particleTypes = { "component" : PComponent,
                      "inbox"     : PPostbox.Inbox,
                      "outbox"    : PPostbox.Outbox
                    }
#    particleTypes.update( (args.get("particleTypes",{})) )
    args["particleTypes"] = particleTypes
    args.pop("laws", None)
    return _TopologyViewer( laws = AxonLaws(),
                            simCyclesPerRedraw = 3,
                            extraDrawing = ExtraWindowFurniture(),
                            **args
                          )
예제 #4
0
def ERVisualiser( **dictArgs):
    """\
    - particleTypes
    - laws
    - simCyclesPerRedraw
    - extraWindowFurniture
    """
    #
    # Allow particleTypes to be overridden
    #
    args = dict(dictArgs)
    particleTypes = { "entity" : PEntity,
                      "relation"     : PRelation.Relation,
                      "isa"     : PISA.Isa,
                      "attribute"     : PAttribute.Attribute,
                    }
#    particleTypes.update( (args.get("particleTypes",{})) )
    args["particleTypes"] = particleTypes
    args.pop("laws", None)
    return _TopologyViewer( laws = AxonLaws(),
                            simCyclesPerRedraw = 3,
                            showGrid           = False,
                            extraDrawing = ExtraWindowFurniture(),
                            **args
                          )