From 36f5c72421d393d8107cb4c2e8018087f9c034fd Mon Sep 17 00:00:00 2001 From: davidrpugh Date: Thu, 1 Jun 2017 13:21:25 +0300 Subject: [PATCH] Added project scaffolding. --- .gitignore | 8 +++- auctions-simulation.ipynb | 65 +++++++++++++++++++++++++++++++++ build.sbt | 16 ++++++++ project/build.properties | 1 + project/plugins.sbt | 1 + src/main/scala/Simulation.scala | 6 +++ 6 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 auctions-simulation.ipynb create mode 100644 build.sbt create mode 100644 project/build.properties create mode 100644 project/plugins.sbt create mode 100644 src/main/scala/Simulation.scala diff --git a/.gitignore b/.gitignore index 9c07d4a..02ae355 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,8 @@ -*.class *.log + +# ignore Inellij IDEA cruft +.idea/ +target/ + +# ignore Jupyter cruft +.ipynb_checkpoints/ diff --git a/auctions-simulation.ipynb b/auctions-simulation.ipynb new file mode 100644 index 0000000..4b1d378 --- /dev/null +++ b/auctions-simulation.ipynb @@ -0,0 +1,65 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[info] Loading global plugins from C:\\Users\\pughdr\\.sbt\\0.13\\plugins\n", + "[info] Loading project definition from C:\\Users\\pughdr\\Research\\scalabm\\auctions-simulation-example\\project\n", + "[info] Set current project to auctions-simulation-example (in build file:/C:/Users/pughdr/Research/scalabm/auctions-simulation-example/)\n", + "[info] Running Simulation \n", + "Hello from Scala!\n", + "[success] Total time: 1 s, completed Jun 1, 2017 1:15:55 PM\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0\n" + ] + } + ], + "source": [ + "!sbt \"run-main Simulation\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.0" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..0e87de0 --- /dev/null +++ b/build.sbt @@ -0,0 +1,16 @@ +name := "auctions-simulation-example" + +version := "1.0" + +scalaVersion := "2.12.2" + +resolvers ++= Seq( + "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", + "Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases" +) + +libraryDependencies ++= Seq( + "com.typesafe.akka" %% "akka-actor" % "2.5.1", + "com.typesafe.akka" %% "akka-remote" % "2.5.1", + "org.economicsl" %% "esl-auctions" % "0.2.0-SNAPSHOT" +) \ No newline at end of file diff --git a/project/build.properties b/project/build.properties new file mode 100644 index 0000000..6be4958 --- /dev/null +++ b/project/build.properties @@ -0,0 +1 @@ +sbt.version = 0.13.15 \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..14a6ca1 --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1 @@ +logLevel := Level.Warn \ No newline at end of file diff --git a/src/main/scala/Simulation.scala b/src/main/scala/Simulation.scala new file mode 100644 index 0000000..e6f650b --- /dev/null +++ b/src/main/scala/Simulation.scala @@ -0,0 +1,6 @@ +/** Entry point for the auction simulation. */ +object Simulation extends App { + + println("Hello from Scala!") + +}