public class MM1Queue41Application extends Object
Copyright (c) 2002-2014 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved.
See for project information www.simulation.tudelft.nl.
The DSOL project is distributed under a BSD-style license.
Modifier | Constructor and Description |
---|---|
protected |
MM1Queue41Application(String modelId,
int port)
Construct a console application.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
protected void |
startListener(int port)
Start listening on a port.
|
protected void |
terminate()
stop the simulation.
|
protected MM1Queue41Application(String modelId, int port) throws nl.tudelft.simulation.dsol.SimRuntimeException, RemoteException, NamingException, org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException
modelId
- unique Id of the model that is used as the sender/receiver when communicatingport
- the sim0mq port number on which the model listensnl.tudelft.simulation.dsol.SimRuntimeException
- on errorRemoteException
- on errorNamingException
- on errororg.sim0mq.Sim0MQException
- on errororg.djutils.serialization.SerializationException
- on serialization problemprotected void startListener(int port) throws org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException
port
- the sim0mq port number on which the model listensorg.sim0mq.Sim0MQException
- on errororg.djutils.serialization.SerializationException
- on serialization problemprotected final void terminate()
public static void main(String[] args) throws nl.tudelft.simulation.dsol.SimRuntimeException, RemoteException, NamingException, org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException
args
- can be left emptynl.tudelft.simulation.dsol.SimRuntimeException
- on errorRemoteException
- on errorNamingException
- on errororg.sim0mq.Sim0MQException
- on errororg.djutils.serialization.SerializationException
- on serialization problemCopyright © 2016–2019. All rights reserved.