public final class TestController extends Object
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
main(String[] args)  | 
static byte[] | 
receiveBytes(InputStream inputStream,
            int size)
Read a specified number of bytes. 
 | 
static AimsunControlProtoBuf.OTSMessage | 
receiveProtoMessage(InputStream inputStream)
Read one OTSMessage. 
 | 
static void | 
sendProtoMessage(OutputStream outputStream,
                AimsunControlProtoBuf.OTSMessage message)
Transit one message to the OTS server. 
 | 
public static void main(String[] args) throws IOException
args - String[]; command line argumentsIOException - when communication failspublic static void sendProtoMessage(OutputStream outputStream, AimsunControlProtoBuf.OTSMessage message) throws IOException
outputStream - OutputStream; output stream to the OTS servermessage - AimsunControlProtoBuf.OTSMessage; the messageIOException - when communication fails in any waypublic static AimsunControlProtoBuf.OTSMessage receiveProtoMessage(InputStream inputStream) throws IOException
inputStream - InputStream; input stream to read fromIOException - when communication failspublic static byte[] receiveBytes(InputStream inputStream, int size) throws IOException
inputStream - InputStream; input stream to read fromsize - int; number of bytes to readIOException - when communication failsCopyright © 2014–2019 Delft University of Technology. All rights reserved.