My favorites | Sign in
Project Home Downloads Wiki Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Console import *
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Visualisation.PhysicsGraph.TopologyViewer import TopologyViewer
from Kamaelia.Visualisation.PhysicsGraph.lines_to_tokenlists import lines_to_tokenlists
from Kamaelia.File.ReadFileAdaptor import ReadFileAdaptor
from Kamaelia.Visualisation.ER.ERVisualiserServer import ERVisualiser
from Kamaelia.Experimental.ERParsing import ERParser,ERModel2Visualiser

Backplane("TOPOLOGY").activate()

Pipeline(
ConsoleReader(">>> "),
PublishTo("TOPOLOGY"),
).activate()

if len(sys.argv)> 1:
Pipeline(
ReadFileAdaptor(sys.argv[1]),
ERParser(),
ERModel2Visualiser(),
PublishTo("TOPOLOGY"),
).activate()

Pipeline(
SubscribeTo("TOPOLOGY"),
lines_to_tokenlists(),
ERVisualiser(screensize = (1024,768), fullscreen = True),
ConsoleEchoer(),

).run()



Change log

r6537 by sparks.m on Jul 24, 2010   Diff
Change license to Apache 2
Go to: 
Sign in to write a code review

Older revisions

r3925 by matth_rd on May 13, 2008   Diff
Merge of
/branches/private_MPS_ERModeller/ into
trunk

Matt
r3907 by ms_ on May 11, 2008   Diff
Candidate for merge

Michael
r3811 by ms_ on Jan 30, 2008   Diff
[No log message]
All revisions of this file

File info

Size: 1768 bytes, 55 lines

File properties

svn:executable
*
Powered by Google Project Hosting