added class 'word'
fenris

fenris commited on 2016-05-28 19:43:20
Zeige 4 geänderte Dateien mit 65 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,12 @@
1
+<project name="fs-workbench" default="build">
2
+	<target name="build">
3
+		<mkdir dir="build">
4
+		</mkdir>
5
+		<concat destfile="build/model.js">
6
+			<filelist dir=".">
7
+				<file name="source/model/word.js">
8
+				</file>
9
+			</filelist>
10
+		</concat>
11
+	</target>
12
+</project>
... ...
@@ -0,0 +1,8 @@
1
+digraph
2
+{
3
+	graph [fontname="monospace"];
4
+
5
+	node [fontname="monospace" shape="box" style="filled" fillcolor="0.4+0.8+0.8"];
6
+	node_word [label="Word\n--\nlanguage\nrepresentation\npronunciation"];
7
+}
8
+
... ...
@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+<!-- Generated by graphviz version 2.38.0 (20140413.2041)
5
+ -->
6
+<!-- Title: %3 Pages: 1 -->
7
+<svg width="140pt" height="91pt"
8
+ viewBox="0.00 0.00 140.00 91.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 87)">
10
+<title>%3</title>
11
+<polygon fill="white" stroke="none" points="-4,4 -4,-87 136,-87 136,4 -4,4"/>
12
+<!-- node_word -->
13
+<g id="node1" class="node"><title>node_word</title>
14
+<polygon fill="#28cc6a" stroke="black" points="132,-83 0,-83 0,-0 132,-0 132,-83"/>
15
+<text text-anchor="middle" x="66" y="-67.8" font-family="monospace" font-size="14.00">Word</text>
16
+<text text-anchor="middle" x="66" y="-52.8" font-family="monospace" font-size="14.00">&#45;&#45;</text>
17
+<text text-anchor="middle" x="66" y="-37.8" font-family="monospace" font-size="14.00">language</text>
18
+<text text-anchor="middle" x="66" y="-22.8" font-family="monospace" font-size="14.00">representation</text>
19
+<text text-anchor="middle" x="66" y="-7.8" font-family="monospace" font-size="14.00">pronunciation</text>
20
+</g>
21
+</g>
22
+</svg>
... ...
@@ -0,0 +1,23 @@
1
+
2
+/**
3
+ * @author fenris
4
+ */
5
+class Word
6
+{
7
+	constructor(language, representation, pronunciation)
8
+	{
9
+		this.language = language;
10
+		this.representation = representation;
11
+		this.pronunciation = pronunciation
12
+	}
13
+	
14
+	toString()
15
+	{
16
+		let parts = [];
17
+		if (this.language != null) parts.push("[" + this.language + "]");
18
+		if (this.representation != null) parts.push("\"" + this.representation + "\"");
19
+		if (this.pronunciation != null) parts.push("(" + this.pronunciation + ")");
20
+		return parts.join(" ");
21
+	}
22
+}
23
+
0 24