Changeset 7 in tmcsimulator-scriptbuilder
- Timestamp:
- 07/25/2017 11:16:45 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 36 edited
- 2 moved
-
. (modified) (1 prop)
-
build.xml (modified) (2 diffs)
-
nbproject/build-impl.xml (modified) (20 diffs)
-
nbproject/genfiles.properties (modified) (1 diff)
-
nbproject/project.properties (modified) (2 diffs)
-
nbproject/project.xml (modified) (1 diff)
-
src/event/editor/AudioPanel.java (modified) (2 diffs)
-
src/event/editor/CADLogPanel.java (modified) (2 diffs)
-
src/event/editor/CCTVPanel.java (modified) (2 diffs)
-
src/event/editor/CHPRadioPanel.java (modified) (1 diff)
-
src/event/editor/CMSEvaluationPanel.java (modified) (2 diffs)
-
src/event/editor/Editor.java (modified) (2 diffs)
-
src/event/editor/GenericEvaluationPanel.java (modified) (3 diffs)
-
src/event/editor/MaintenanceRadioPanel.java (modified) (1 diff)
-
src/event/editor/ParamicsPanel.java (modified) (2 diffs)
-
src/event/editor/RemoveablePanel.java (modified) (1 diff)
-
src/event/editor/ScriptEventEditorPanel.java (modified) (2 diffs)
-
src/event/editor/TMTRadioPanel.java (modified) (1 diff)
-
src/event/editor/TelephonePanel.java (modified) (1 diff)
-
src/event/editor/TowPanel.java (modified) (2 diffs)
-
src/event/editor/UnitPanel.java (modified) (2 diffs)
-
src/event/editor/WitnessPanel.java (modified) (2 diffs)
-
src/scriptbuilder/gui/ScriptBuilderFrame.java (modified) (2 diffs)
-
src/scriptbuilder/gui/drawers/EventIconDrawer.java (modified) (2 diffs)
-
src/scriptbuilder/gui/drawers/TimeSliceDrawer.java (modified) (2 diffs)
-
src/scriptbuilder/gui/panels/IncidentTimelinePanel.java (modified) (3 diffs)
-
src/scriptbuilder/structures/MyScriptHandler.java (modified) (5 diffs)
-
src/scriptbuilder/structures/ScriptEvent.java (modified) (2 diffs)
-
src/scriptbuilder/structures/ScriptIncident.java (modified) (2 diffs)
-
src/scriptbuilder/structures/TimeSlice.java (modified) (6 diffs)
-
src/scriptbuilder/structures/events/ATMSEvaluationEvent.java (modified) (1 diff)
-
src/scriptbuilder/structures/events/ActivityLogEvaluationEvent.java (modified) (1 diff)
-
src/scriptbuilder/structures/events/CADEvaluationEvent.java (modified) (1 diff)
-
src/scriptbuilder/structures/events/CMSEvaluationEvent.java (modified) (1 diff)
-
src/scriptbuilder/structures/events/FacilitatorEvaluationEvent.java (modified) (1 diff)
-
src/scriptbuilder/structures/events/I_EvaluationEvent.java (moved) (moved from trunk/src/scriptbuilder/structures/events/EvaluationEventInterface.java) (2 diffs)
-
src/scriptbuilder/structures/events/I_ScriptEvent.java (moved) (moved from trunk/src/scriptbuilder/structures/events/ScriptEventInterface.java) (1 diff)
-
src/scriptbuilder/structures/events/RadioEvaluationEvent.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
build
-
Property
svn:ignore
set to
-
trunk/build.xml
r5 r7 8 8 <!-- You can turn off the Compile on Save (or Deploy on Save) setting --> 9 9 <!-- in the project's Project Properties dialog box.--> 10 <project name="ScriptBuilder " default="default" basedir=".">11 <description>Builds, tests, and runs the project ScriptBuilder .</description>10 <project name="ScriptBuilder_Repo" default="default" basedir="."> 11 <description>Builds, tests, and runs the project ScriptBuilder_Repo.</description> 12 12 <import file="nbproject/build-impl.xml"/> 13 13 <!-- … … 59 59 An example of overriding the target for project execution could look like this: 60 60 61 <target name="run" depends="ScriptBuilder -impl.jar">61 <target name="run" depends="ScriptBuilder_Repo-impl.jar"> 62 62 <exec dir="bin" executable="launcher.exe"> 63 63 <arg file="${dist.jar}"/> -
trunk/nbproject/build-impl.xml
r4 r7 20 20 21 21 --> 22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="ScriptBuilder -impl">22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="ScriptBuilder_Repo-impl"> 23 23 <fail message="Please build using Ant 1.8.0 or higher."> 24 24 <condition> … … 47 47 <!-- The two properties below are usually overridden --> 48 48 <!-- by the active platform. Just a fallback. --> 49 <property name="default.javac.source" value="1. 6"/>50 <property name="default.javac.target" value="1. 6"/>49 <property name="default.javac.source" value="1.4"/> 50 <property name="default.javac.target" value="1.4"/> 51 51 </target> 52 52 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> … … 77 77 <isset property="javac.profile"/> 78 78 <length length="0" string="${javac.profile}" when="greater"/> 79 <matches pattern=" ((1\.[89])|9)(\..*)?" string="${javac.source}"/>79 <matches pattern="1\.[89](\..*)?" string="${javac.source}"/> 80 80 </and> 81 81 </condition> 82 82 <condition property="do.archive"> 83 <or> 84 <not> 85 <istrue value="${jar.archive.disabled}"/> 86 </not> 87 <istrue value="${not.archive.disabled}"/> 88 </or> 83 <not> 84 <istrue value="${jar.archive.disabled}"/> 85 </not> 89 86 </condition> 90 87 <condition property="do.mkdist"> … … 157 154 <property name="source.encoding" value="${file.encoding}"/> 158 155 <property name="runtime.encoding" value="${source.encoding}"/> 159 <property name="manifest.encoding" value="${source.encoding}"/>160 156 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> 161 157 <and> … … 193 189 </and> 194 190 </condition> 195 <condition else="false" property="javac.fork"> 196 <or> 197 <istrue value="${jdkBug6558476}"/> 198 <istrue value="${javac.external.vm}"/> 199 </or> 200 </condition> 191 <property name="javac.fork" value="${jdkBug6558476}"/> 201 192 <property name="jar.index" value="false"/> 202 193 <property name="jar.index.metainf" value="${jar.index}"/> … … 224 215 <istrue value="${junit+testng.available}"/> 225 216 </condition> 226 <property name="java.failonerror" value="true"/>227 217 </target> 228 218 <target name="-post-init"> … … 451 441 </union> 452 442 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> 453 <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="ScriptBuilder " testname="TestNG tests" workingDir="${work.dir}">443 <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="ScriptBuilder_Repo" testname="TestNG tests" workingDir="${work.dir}"> 454 444 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> 455 445 <propertyset> … … 602 592 <isset property="test.method"/> 603 593 </condition> 604 <condition else="-suitename ScriptBuilder -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">594 <condition else="-suitename ScriptBuilder_Repo -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> 605 595 <matches pattern=".*\.xml" string="@{testClass}"/> 606 596 </condition> … … 701 691 <property environment="env"/> 702 692 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> 703 <java classname="@{classname}" dir="${profiler.info.dir}" f ailonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">693 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> 704 694 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 705 695 <jvmarg value="${profiler.info.jvmargs.agent}"/> … … 776 766 <element name="customize" optional="true"/> 777 767 <sequential> 778 <java classname="@{classname}" dir="${work.dir}" f ailonerror="${java.failonerror}" fork="true">768 <java classname="@{classname}" dir="${work.dir}" fork="true"> 779 769 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 780 770 <jvmarg line="${debug-args-line}"/> … … 803 793 <element name="customize" optional="true"/> 804 794 <sequential> 805 <java classname="@{classname}" dir="${work.dir}" f ailonerror="${java.failonerror}" fork="true">795 <java classname="@{classname}" dir="${work.dir}" fork="true"> 806 796 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 807 797 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> … … 842 832 </pathconvert> 843 833 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 844 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8"rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">834 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 845 835 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> 846 836 <manifest> … … 854 844 <target name="-init-presetdef-jar"> 855 845 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> 856 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">846 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> 857 847 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> 858 848 </jar> … … 894 884 </target> 895 885 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> 896 <echo level="warn" message="Cycle detected: ScriptBuilder was already built"/>886 <echo level="warn" message="Cycle detected: ScriptBuilder_Repo was already built"/> 897 887 </target> 898 888 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> … … 977 967 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> 978 968 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> 979 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>969 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> 980 970 </target> 981 971 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> 982 <manifest encoding="UTF-8"file="${tmp.manifest.file}" mode="update">972 <manifest file="${tmp.manifest.file}" mode="update"> 983 973 <attribute name="Main-Class" value="${main.class}"/> 984 974 </manifest> 985 975 </target> 986 976 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> 987 <manifest encoding="UTF-8"file="${tmp.manifest.file}" mode="update">977 <manifest file="${tmp.manifest.file}" mode="update"> 988 978 <attribute name="Profile" value="${javac.profile}"/> 989 979 </manifest> … … 993 983 <mkdir dir="${build.classes.dir}/META-INF"/> 994 984 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> 995 <manifest encoding="UTF-8"file="${tmp.manifest.file}" mode="update">985 <manifest file="${tmp.manifest.file}" mode="update"> 996 986 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> 997 987 </manifest> … … 1188 1178 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1189 1179 <startprofiler/> 1190 <antcal ltarget="run-test-with-main"/>1180 <antcal target="run-test-with-main"/> 1191 1181 </target> 1192 1182 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> … … 1210 1200 </and> 1211 1201 </condition> 1212 <condition else="" property="bug5101868workaround" value="*.java"> 1213 <matches pattern="1\.[56](\..*)?" string="${java.version}"/> 1214 </condition> 1215 <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> 1202 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> 1216 1203 <classpath> 1217 1204 <path path="${javac.classpath}"/> 1218 1205 </classpath> 1219 <fileset dir="${src.dir}" excludes=" ${bug5101868workaround},${excludes}" includes="${includes}">1206 <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}"> 1220 1207 <filename name="**/*.java"/> 1221 1208 </fileset> … … 1291 1278 </target> 1292 1279 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> 1293 <j2seproject3:test includes="${includes}"testincludes="**/*Test.java"/>1280 <j2seproject3:test testincludes="**/*Test.java"/> 1294 1281 </target> 1295 1282 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> … … 1379 1366 </target> 1380 1367 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> 1381 <echo level="warn" message="Cycle detected: ScriptBuilder was already built"/>1368 <echo level="warn" message="Cycle detected: ScriptBuilder_Repo was already built"/> 1382 1369 </target> 1383 1370 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> -
trunk/nbproject/genfiles.properties
r4 r7 1 build.xml.data.CRC32= c690a94a2 build.xml.script.CRC32= 5682d7f41 build.xml.data.CRC32=66ccbf9e 2 build.xml.script.CRC32=7597bd4c 3 3 build.xml.stylesheet.CRC32=8064a381@1.68.1.46 4 4 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 5 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 nbproject/build-impl.xml.data.CRC32= c690a94a7 nbproject/build-impl.xml.script.CRC32= 1357f8388 nbproject/build-impl.xml.stylesheet.CRC32= 830a3534@1.80.1.486 nbproject/build-impl.xml.data.CRC32=66ccbf9e 7 nbproject/build-impl.xml.script.CRC32=d1923e08 8 nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.1.46 -
trunk/nbproject/project.properties
r3 r7 1 1 annotation.processing.enabled=true 2 2 annotation.processing.enabled.in.editor=false 3 annotation.processing.processor.options=4 3 annotation.processing.processors.list= 5 4 annotation.processing.run.all.processors=true 6 5 annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 6 application.title=ScriptBuilder_Repo 7 application.vendor=bryanmcguffin 7 8 build.classes.dir=${build.dir}/classes 8 9 build.classes.excludes=**/*.java,**/*.form … … 25 26 # This directory is removed when the project is cleaned: 26 27 dist.dir=dist 27 dist.jar=${dist.dir}/ScriptBuilder .jar28 dist.jar=${dist.dir}/ScriptBuilder_Repo.jar 28 29 dist.javadoc.dir=${dist.dir}/javadoc 30 endorsed.classpath= 29 31 excludes= 30 32 includes=** -
trunk/nbproject/project.xml
r2 r7 4 4 <configuration> 5 5 <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> 6 <name>ScriptBuilder </name>6 <name>ScriptBuilder_Repo</name> 7 7 <source-roots> 8 8 <root id="src.dir"/> -
trunk/src/event/editor/AudioPanel.java
r1 r7 5 5 import javax.swing.*; 6 6 import scriptbuilder.structures.events.AudioEvent; 7 import scriptbuilder.structures.events. ScriptEventInterface;7 import scriptbuilder.structures.events.I_ScriptEvent; 8 8 9 9 /** … … 26 26 } 27 27 28 public void getEventObject( ScriptEventInterfacesei)28 public void getEventObject(I_ScriptEvent sei) 29 29 { 30 30 event = (AudioEvent) sei; -
trunk/src/event/editor/CADLogPanel.java
r1 r7 4 4 import java.util.Observable; 5 5 import scriptbuilder.structures.events.CADEvent; 6 import scriptbuilder.structures.events. ScriptEventInterface;6 import scriptbuilder.structures.events.I_ScriptEvent; 7 7 8 8 /** … … 29 29 } 30 30 31 public void getEventObject( ScriptEventInterfacesei)31 public void getEventObject(I_ScriptEvent sei) 32 32 { 33 33 event = (CADEvent) sei; -
trunk/src/event/editor/CCTVPanel.java
r1 r7 4 4 import java.util.Observable; 5 5 import scriptbuilder.structures.events.CCTVEvent; 6 import scriptbuilder.structures.events. ScriptEventInterface;6 import scriptbuilder.structures.events.I_ScriptEvent; 7 7 8 8 /** … … 64 64 } 65 65 66 public void getEventObject( ScriptEventInterfacesei)66 public void getEventObject(I_ScriptEvent sei) 67 67 { 68 68 event = (CCTVEvent) sei; -
trunk/src/event/editor/CHPRadioPanel.java
r1 r7 31 31 } 32 32 33 public void getEventObject( ScriptEventInterfacesei)33 public void getEventObject(I_ScriptEvent sei) 34 34 { 35 35 event = (CHPRadioEvent) sei; -
trunk/src/event/editor/CMSEvaluationPanel.java
r1 r7 7 7 import javax.swing.event.TableModelListener; 8 8 import scriptbuilder.structures.events.CMSEvaluationEvent; 9 import scriptbuilder.structures.events. ScriptEventInterface;9 import scriptbuilder.structures.events.I_ScriptEvent; 10 10 11 11 /** … … 36 36 } 37 37 38 public void getEventObject( ScriptEventInterfacesei)38 public void getEventObject(I_ScriptEvent sei) 39 39 { 40 40 event = (CMSEvaluationEvent) sei; -
trunk/src/event/editor/Editor.java
r1 r7 392 392 } 393 393 394 public void addProperty(Properties property, ScriptEventInterfacese)394 public void addProperty(Properties property, I_ScriptEvent se) 395 395 { 396 396 try … … 457 457 } 458 458 459 public void addProperty(Properties property, ScriptEventInterfacese)459 public void addProperty(Properties property, I_ScriptEvent se) 460 460 { 461 461 model.addProperty(property, se); -
trunk/src/event/editor/GenericEvaluationPanel.java
r1 r7 7 7 import javax.swing.event.TableModelEvent; 8 8 import javax.swing.event.TableModelListener; 9 import scriptbuilder.structures.events. EvaluationEventInterface;10 import scriptbuilder.structures.events. ScriptEventInterface;9 import scriptbuilder.structures.events.I_EvaluationEvent; 10 import scriptbuilder.structures.events.I_ScriptEvent; 11 11 12 12 /** … … 18 18 19 19 private ActionListener removeListener; 20 private EvaluationEventInterfaceevent;20 private I_EvaluationEvent event; 21 21 private JTable dialogTable; 22 22 … … 37 37 } 38 38 39 public void getEventObject( ScriptEventInterfacesei)39 public void getEventObject(I_ScriptEvent sei) 40 40 { 41 if (sei instanceof EvaluationEventInterface)41 if (sei instanceof I_EvaluationEvent) 42 42 { 43 event = ( EvaluationEventInterface) sei;43 event = (I_EvaluationEvent) sei; 44 44 ArrayList<String> strs = event.getExpectedActions(); 45 45 for (String s : strs) -
trunk/src/event/editor/MaintenanceRadioPanel.java
r1 r7 23 23 } 24 24 25 public void getEventObject( ScriptEventInterfacesei)25 public void getEventObject(I_ScriptEvent sei) 26 26 { 27 27 event = (MaintenanceRadioEvent) sei; -
trunk/src/event/editor/ParamicsPanel.java
r1 r7 6 6 import javax.swing.JCheckBox; 7 7 import scriptbuilder.structures.events.ParamicsEvent; 8 import scriptbuilder.structures.events. ScriptEventInterface;8 import scriptbuilder.structures.events.I_ScriptEvent; 9 9 10 10 /** … … 31 31 } 32 32 33 public void getEventObject( ScriptEventInterfacesei)33 public void getEventObject(I_ScriptEvent sei) 34 34 { 35 35 event = (ParamicsEvent) sei; -
trunk/src/event/editor/RemoveablePanel.java
r1 r7 2 2 3 3 import java.awt.event.*; 4 import scriptbuilder.structures.events. ScriptEventInterface;4 import scriptbuilder.structures.events.I_ScriptEvent; 5 5 6 6 public interface RemoveablePanel -
trunk/src/event/editor/ScriptEventEditorPanel.java
r1 r7 7 7 8 8 import java.util.Observer; 9 import scriptbuilder.structures.events. ScriptEventInterface;9 import scriptbuilder.structures.events.I_ScriptEvent; 10 10 11 11 /** … … 16 16 { 17 17 18 void getEventObject( ScriptEventInterfacesei);18 void getEventObject(I_ScriptEvent sei); 19 19 } -
trunk/src/event/editor/TMTRadioPanel.java
r1 r7 23 23 } 24 24 25 public void getEventObject( ScriptEventInterfacesei)25 public void getEventObject(I_ScriptEvent sei) 26 26 { 27 27 event = (TMTRadioEvent) sei; -
trunk/src/event/editor/TelephonePanel.java
r1 r7 33 33 } 34 34 35 public void getEventObject( ScriptEventInterfacesei)35 public void getEventObject(I_ScriptEvent sei) 36 36 { 37 37 event = (TelephoneEvent) sei; -
trunk/src/event/editor/TowPanel.java
r1 r7 3 3 import java.awt.event.*; 4 4 import java.util.Observable; 5 import scriptbuilder.structures.events. ScriptEventInterface;5 import scriptbuilder.structures.events.I_ScriptEvent; 6 6 import scriptbuilder.structures.events.TowEvent; 7 7 … … 60 60 } 61 61 62 public void getEventObject( ScriptEventInterfacesei)62 public void getEventObject(I_ScriptEvent sei) 63 63 { 64 64 event = (TowEvent) sei; -
trunk/src/event/editor/UnitPanel.java
r1 r7 3 3 import java.awt.event.*; 4 4 import java.util.Observable; 5 import scriptbuilder.structures.events. ScriptEventInterface;5 import scriptbuilder.structures.events.I_ScriptEvent; 6 6 import scriptbuilder.structures.events.UnitEvent; 7 7 … … 44 44 } 45 45 46 public void getEventObject( ScriptEventInterfacesei)46 public void getEventObject(I_ScriptEvent sei) 47 47 { 48 48 event = (UnitEvent) sei; -
trunk/src/event/editor/WitnessPanel.java
r1 r7 4 4 import java.util.Observable; 5 5 import java.util.StringTokenizer; 6 import scriptbuilder.structures.events. ScriptEventInterface;6 import scriptbuilder.structures.events.I_ScriptEvent; 7 7 import scriptbuilder.structures.events.WitnessEvent; 8 8 … … 31 31 32 32 33 public void getEventObject( ScriptEventInterfacesei)33 public void getEventObject(I_ScriptEvent sei) 34 34 { 35 35 event = (WitnessEvent) sei; -
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
r1 r7 31 31 import scriptbuilder.structures.SimulationScript; 32 32 import scriptbuilder.structures.TimeSlice; 33 import scriptbuilder.structures.events. ScriptEventInterface;33 import scriptbuilder.structures.events.I_ScriptEvent; 34 34 35 35 /** … … 360 360 361 361 DefaultListModel model = new DefaultListModel(); 362 for ( ScriptEventInterfacee : slice.events)362 for (I_ScriptEvent e : slice.events) 363 363 { 364 364 model.addElement(e); -
trunk/src/scriptbuilder/gui/drawers/EventIconDrawer.java
r1 r7 13 13 import scriptbuilder.structures.ScriptEvent.ScriptEventType; 14 14 import images.*; 15 import scriptbuilder.structures.events. ScriptEventInterface;15 import scriptbuilder.structures.events.I_ScriptEvent; 16 16 17 17 /** … … 138 138 * y) 139 139 */ 140 public static void DrawEventIcon(Graphics2D g2d, ScriptEventInterfaceevent,140 public static void DrawEventIcon(Graphics2D g2d, I_ScriptEvent event, 141 141 int x, int y) 142 142 { -
trunk/src/scriptbuilder/gui/drawers/TimeSliceDrawer.java
r1 r7 12 12 import scriptbuilder.structures.ScriptEvent; 13 13 import scriptbuilder.structures.TimeSlice; 14 import scriptbuilder.structures.events. ScriptEventInterface;14 import scriptbuilder.structures.events.I_ScriptEvent; 15 15 16 16 /** … … 88 88 } 89 89 90 ScriptEventInterfaceevent = slice.events.get(i);90 I_ScriptEvent event = slice.events.get(i); 91 91 EventIconDrawer.DrawEventIcon(g2d, event, slice.getX() 92 92 - ScriptBuilderGuiConstants.EVENT_ICON_WIDTH, -
trunk/src/scriptbuilder/gui/panels/IncidentTimelinePanel.java
r1 r7 20 20 import scriptbuilder.structures.ScriptIncident; 21 21 import scriptbuilder.structures.TimeSlice; 22 import scriptbuilder.structures.events. ScriptEventInterface;22 import scriptbuilder.structures.events.I_ScriptEvent; 23 23 24 24 /** … … 129 129 } 130 130 131 for ( ScriptEventInterfacese : incident.slices.get(newSlice).events)131 for (I_ScriptEvent se : incident.slices.get(newSlice).events) 132 132 { 133 133 ed.addProperty(eventTypeToPropertyMap.get(se.getScriptEventType()), se); … … 141 141 if (f.currentEventType != null) 142 142 { 143 ScriptEventInterfaces = ScriptEvent.factoryByType(f.currentEventType);143 I_ScriptEvent s = ScriptEvent.factoryByType(f.currentEventType); 144 144 ed.addProperty(eventTypeToPropertyMap.get(f.currentEventType), s); 145 145 incident.slices.get(newSlice).addEvent(s); -
trunk/src/scriptbuilder/structures/MyScriptHandler.java
r1 r7 195 195 * Event object. 196 196 */ 197 private TreeMap<ELEMENT, ScriptEventInterface> eventMap;197 private TreeMap<ELEMENT, I_ScriptEvent> eventMap; 198 198 199 199 /** … … 335 335 * The most recent element which contains dialog or other sub-elements. 336 336 */ 337 private ScriptEventInterfacetrackedEvent = null;337 private I_ScriptEvent trackedEvent = null; 338 338 339 339 /** … … 369 369 script = s; 370 370 incidentMap = new TreeMap<Integer, ScriptIncident>(); 371 eventMap = new TreeMap<ELEMENT, ScriptEventInterface>();371 eventMap = new TreeMap<ELEMENT, I_ScriptEvent>(); 372 372 pcData = new TreeMap<ELEMENT, String>(); 373 373 docPosition = new Stack<ELEMENT>(); … … 727 727 728 728 currentElement = docPosition.pop(); 729 ScriptEventInterfacenewEvent = null;729 I_ScriptEvent newEvent = null; 730 730 try 731 731 { … … 804 804 else if (currentElement == ELEMENT.EXPECTED_ACTION) 805 805 { 806 if (trackedEvent instanceof EvaluationEventInterface)807 { 808 (( EvaluationEventInterface) trackedEvent).addAction(pcData.remove(ELEMENT.EXPECTED_ACTION));806 if (trackedEvent instanceof I_EvaluationEvent) 807 { 808 ((I_EvaluationEvent) trackedEvent).addAction(pcData.remove(ELEMENT.EXPECTED_ACTION)); 809 809 } 810 810 } -
trunk/src/scriptbuilder/structures/ScriptEvent.java
r1 r7 12 12 * @version 2017/06/30 13 13 */ 14 public abstract class ScriptEvent extends Observable implements ScriptEventInterface14 public abstract class ScriptEvent extends Observable implements I_ScriptEvent 15 15 { 16 16 … … 129 129 } 130 130 131 public static ScriptEventInterfacefactoryByType(ScriptEventType t)131 public static I_ScriptEvent factoryByType(ScriptEventType t) 132 132 { 133 133 switch(t) -
trunk/src/scriptbuilder/structures/ScriptIncident.java
r1 r7 7 7 import java.util.Observable; 8 8 import java.util.TreeMap; 9 import scriptbuilder.structures.events. ScriptEventInterface;9 import scriptbuilder.structures.events.I_ScriptEvent; 10 10 11 11 /** … … 161 161 * the simulation 162 162 */ 163 public void addNewEvent( ScriptEventInterfaceev, int start)163 public void addNewEvent(I_ScriptEvent ev, int start) 164 164 { 165 165 TimeSlice t = slices.get(start); -
trunk/src/scriptbuilder/structures/TimeSlice.java
r1 r7 5 5 import java.util.List; 6 6 import scriptbuilder.gui.ScriptBuilderGuiConstants; 7 import scriptbuilder.structures.events. ScriptEventInterface;7 import scriptbuilder.structures.events.I_ScriptEvent; 8 8 9 9 /** … … 23 23 * List of Script Events which begin at this instance. 24 24 */ 25 public List< ScriptEventInterface> events;25 public List<I_ScriptEvent> events; 26 26 //Absolute start time of this time slice 27 27 private int seconds; … … 36 36 { 37 37 this.seconds = seconds; 38 events = new ArrayList< ScriptEventInterface>();38 events = new ArrayList<I_ScriptEvent>(); 39 39 } 40 40 … … 44 44 * @param event the ScriptEvent to be added 45 45 */ 46 public void addEvent( ScriptEventInterfaceevent)46 public void addEvent(I_ScriptEvent event) 47 47 { 48 48 events.add(event); … … 93 93 { 94 94 int dur = 0; 95 for ( ScriptEventInterfacee : events)95 for (I_ScriptEvent e : events) 96 96 { 97 97 if (e.getLength() > dur) … … 151 151 StringBuilder sb = new StringBuilder(); 152 152 153 for ( ScriptEventInterfaceevent : events)153 for (I_ScriptEvent event : events) 154 154 { 155 155 sb.append(event.toString()); -
trunk/src/scriptbuilder/structures/events/ATMSEvaluationEvent.java
r1 r7 14 14 * @author Bryan McGuffin 15 15 */ 16 public class ATMSEvaluationEvent extends ScriptEvent implements EvaluationEventInterface16 public class ATMSEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 17 17 { 18 18 -
trunk/src/scriptbuilder/structures/events/ActivityLogEvaluationEvent.java
r1 r7 14 14 * @author Bryan McGuffin 15 15 */ 16 public class ActivityLogEvaluationEvent extends ScriptEvent implements EvaluationEventInterface16 public class ActivityLogEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 17 17 { 18 18 -
trunk/src/scriptbuilder/structures/events/CADEvaluationEvent.java
r1 r7 14 14 * @author Bryan McGuffin 15 15 */ 16 public class CADEvaluationEvent extends ScriptEvent implements EvaluationEventInterface16 public class CADEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 17 17 { 18 18 -
trunk/src/scriptbuilder/structures/events/CMSEvaluationEvent.java
r1 r7 15 15 * @author Bryan McGuffin 16 16 */ 17 public class CMSEvaluationEvent extends ScriptEvent implements EvaluationEventInterface17 public class CMSEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 18 18 { 19 19 -
trunk/src/scriptbuilder/structures/events/FacilitatorEvaluationEvent.java
r1 r7 14 14 * @author Bryan McGuffin 15 15 */ 16 public class FacilitatorEvaluationEvent extends ScriptEvent implements EvaluationEventInterface16 public class FacilitatorEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 17 17 { 18 18 -
trunk/src/scriptbuilder/structures/events/I_EvaluationEvent.java
r1 r7 1 /*2 * To change this license header, choose License Headers in Project Properties.3 * To change this template file, choose Tools | Templates4 * and open the template in the editor.5 */6 1 package scriptbuilder.structures.events; 7 2 … … 14 9 * @author Bryan McGuffin 15 10 */ 16 public interface EvaluationEventInterface11 public interface I_EvaluationEvent 17 12 { 18 13 -
trunk/src/scriptbuilder/structures/events/I_ScriptEvent.java
r1 r7 10 10 * @author Bryan McGuffin 11 11 */ 12 public interface ScriptEventInterfaceextends Comparable12 public interface I_ScriptEvent extends Comparable 13 13 { 14 14 -
trunk/src/scriptbuilder/structures/events/RadioEvaluationEvent.java
r1 r7 15 15 * @author Bryan McGuffin 16 16 */ 17 public class RadioEvaluationEvent extends ScriptEvent implements EvaluationEventInterface17 public class RadioEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 18 18 { 19 19
Note: See TracChangeset
for help on using the changeset viewer.
