Skip to content

Commit

Permalink
use the new zmq client #4
Browse files Browse the repository at this point in the history
  • Loading branch information
N. Justus committed Nov 30, 2018
1 parent b239de2 commit 260c55d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/de/thm/mope/compiler/OMCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import de.thm.mope.utils.IOUtils
import de.thm.mope.utils.MonadImplicits._
import omc.corba.ScriptingHelper._
import omc.corba._
import omc.ZeroMQClient
import omc.{ImportHandler, LoadLibraryException}
import org.slf4j.LoggerFactory

Expand All @@ -39,9 +40,8 @@ class OMCompiler(projConfig: ProjectConfig) extends ModelicaCompiler {
private val msgParser = new MsgParser()
private val omc: OMCInterface = {
val forceEnglish = projConfig.server.config.getBoolean("forceEnglish")
val suffixProvider = new CustomIORNameProvider("mope", true)
if (forceEnglish) new OMCClient(projConfig.server.compilerExecutable, Constants.usLocale, suffixProvider)
else new OMCClient(projConfig.server.compilerExecutable, suffixProvider)
if (forceEnglish) new ZeroMQClient(projConfig.server.compilerExecutable, Constants.usLocale)
else new ZeroMQClient(projConfig.server.compilerExecutable)
}
private val paramRegex = """input\s*([\w\d]+)\s*([\w\d]+)""".r

Expand Down

0 comments on commit 260c55d

Please sign in to comment.