From 790121402873e5177a83172c1b81600056898280 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 10 Jun 2015 07:57:57 +0200 Subject: Start w16 ice cream --- .gitignore | 3 +- Readme.md | 2 + Week16 Ice Cream/Assignment (in Dutch).pdf | Bin 0 -> 115443 bytes Week16 Ice Cream/build.xml | 73 + Week16 Ice Cream/manifest.mf | 3 + Week16 Ice Cream/nbproject/build-impl.xml | 1413 ++++++++++++++++++++ Week16 Ice Cream/nbproject/genfiles.properties | 8 + Week16 Ice Cream/nbproject/project.properties | 73 + Week16 Ice Cream/nbproject/project.xml | 15 + .../com/camilstaps/icecream/Week16IceCream.java | 19 + 10 files changed, 1608 insertions(+), 1 deletion(-) create mode 100644 Week16 Ice Cream/Assignment (in Dutch).pdf create mode 100644 Week16 Ice Cream/build.xml create mode 100644 Week16 Ice Cream/manifest.mf create mode 100644 Week16 Ice Cream/nbproject/build-impl.xml create mode 100644 Week16 Ice Cream/nbproject/genfiles.properties create mode 100644 Week16 Ice Cream/nbproject/project.properties create mode 100644 Week16 Ice Cream/nbproject/project.xml create mode 100644 Week16 Ice Cream/src/com/camilstaps/icecream/Week16IceCream.java diff --git a/.gitignore b/.gitignore index 760fba7..d85a17c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ /Week14 Route 66/nbproject/private/ /Week14 Route 66/build/ /Week15 Mandelbrot/nbproject/private/ -/Week15 Mandelbrot/build/ \ No newline at end of file +/Week15 Mandelbrot/build/ +/Week16 Ice Cream/nbproject/private/ \ No newline at end of file diff --git a/Readme.md b/Readme.md index c5e9c82..f2c2b66 100644 --- a/Readme.md +++ b/Readme.md @@ -20,3 +20,5 @@ We use Netbeans IDE 8.0.2 and Visual Paradigm 12.0. * Week 13: bar - sequential program to concurrent program * Week 14: automated car drivers - threads; `java.util.concurrent`; `wait()`, `notify()` and `notifyAll()` * Week 15: mandelbrot with SwingWorkers +* Week 16: ice cream - decorator design pattern +* Week 16: webshop - strategy design pattern diff --git a/Week16 Ice Cream/Assignment (in Dutch).pdf b/Week16 Ice Cream/Assignment (in Dutch).pdf new file mode 100644 index 0000000..d7d8c65 Binary files /dev/null and b/Week16 Ice Cream/Assignment (in Dutch).pdf differ diff --git a/Week16 Ice Cream/build.xml b/Week16 Ice Cream/build.xml new file mode 100644 index 0000000..2ecc420 --- /dev/null +++ b/Week16 Ice Cream/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Week16 Ice Cream. + + + diff --git a/Week16 Ice Cream/manifest.mf b/Week16 Ice Cream/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/Week16 Ice Cream/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Week16 Ice Cream/nbproject/build-impl.xml b/Week16 Ice Cream/nbproject/build-impl.xml new file mode 100644 index 0000000..19bd6ed --- /dev/null +++ b/Week16 Ice Cream/nbproject/build-impl.xml @@ -0,0 +1,1413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Week16 Ice Cream/nbproject/genfiles.properties b/Week16 Ice Cream/nbproject/genfiles.properties new file mode 100644 index 0000000..c35f60e --- /dev/null +++ b/Week16 Ice Cream/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a548d10d +build.xml.script.CRC32=6a85899e +build.xml.stylesheet.CRC32=8064a381@1.75.2.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a548d10d +nbproject/build-impl.xml.script.CRC32=26abd0ed +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 diff --git a/Week16 Ice Cream/nbproject/project.properties b/Week16 Ice Cream/nbproject/project.properties new file mode 100644 index 0000000..6666cef --- /dev/null +++ b/Week16 Ice Cream/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Week16_Ice_Cream.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.7 +javac.target=1.7 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=com.camilstaps.icecream.Week16IceCream +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Week16 Ice Cream/nbproject/project.xml b/Week16 Ice Cream/nbproject/project.xml new file mode 100644 index 0000000..306e3aa --- /dev/null +++ b/Week16 Ice Cream/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Week16 Ice Cream + + + + + + + + + diff --git a/Week16 Ice Cream/src/com/camilstaps/icecream/Week16IceCream.java b/Week16 Ice Cream/src/com/camilstaps/icecream/Week16IceCream.java new file mode 100644 index 0000000..df72e2e --- /dev/null +++ b/Week16 Ice Cream/src/com/camilstaps/icecream/Week16IceCream.java @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2015 Camil Staps + */ +package com.camilstaps.icecream; + +/** + * + * @author camilstaps + */ +public class Week16IceCream { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} -- cgit v1.2.3