IPv6TestAdapter v47 build 0.8

com.testingtech.ttcn.tri
Class IPv6TestAdapter

java.lang.Object
  extended bycom.testingtech.ttcn.tri.IPv6TestAdapter

public class IPv6TestAdapter
extends java.lang.Object

IPv6TestAdapter.java This is the test adapter for the IPv6 TS on linux/windows platform(STF276).
The configurations of the test adapter:

Version:
0.1
Author:
Dirk Tepelmann

Constructor Summary
IPv6TestAdapter()
          Creates a new IPv6TestAdapter object.
 
Method Summary
 void enqueueMsg(TriPortId sender, TriAddress address, TriComponentId receiver, TriMessage message)
          Enqueues the message to the TE.
 TciCDProvided getCodec(java.lang.String encodingName)
           
 java.lang.String getIPv6AddressString(byte[] msg)
          Prepares a IP address string from a given IP packet
 void handlePacket(Packet packet)
           
 void log(java.lang.String logMessage)
          Logs TestAdapter events
 TriStatus prepareHashMaps(Value ipv6Param, java.lang.String ipField, java.lang.String macField, java.lang.String netDeviceId, PTCAndRole par)
          Prepares the send and receive HashMaps for the given configurations.
 TriStatus scopCancel()
          Stops the receiver thread for the upper layer.
 void setFilterAndStartThread(Jpcap jpcap, java.lang.String netDeviceId, RecordOfValue macFilterList)
          Sets the filter for capturing messages from the net device and starts the capturing.
 com.testingtech.ttcn.tri.TestAdapter setRB(de.tu_berlin.cs.uebb.muttcn.runtime.RB rb)
           
 TriStatus triExecuteTestcase(TriTestCaseId testcase, TriPortIdList tsiList)
           
 TriStatus triMap(TriPortId compPortId, TriPortId tsiPortId)
           
 TriStatus triSAReset()
           
 TriStatus triSend(TriComponentId componentId, TriPortId tsiPortId, TriAddress address, TriMessage message)
           
 TriStatus triSutActionInformal(java.lang.String description)
           
 TriStatus triSutActionTemplate(TriActionTemplate at)
           
 TriStatus triUnmap(TriPortId compPortId, TriPortId tsiPortId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPv6TestAdapter

public IPv6TestAdapter()
Creates a new IPv6TestAdapter object.

Method Detail

setRB

public com.testingtech.ttcn.tri.TestAdapter setRB(de.tu_berlin.cs.uebb.muttcn.runtime.RB rb)

getCodec

public TciCDProvided getCodec(java.lang.String encodingName)

triExecuteTestcase

public TriStatus triExecuteTestcase(TriTestCaseId testcase,
                                    TriPortIdList tsiList)

triMap

public TriStatus triMap(TriPortId compPortId,
                        TriPortId tsiPortId)

triUnmap

public TriStatus triUnmap(TriPortId compPortId,
                          TriPortId tsiPortId)

enqueueMsg

public void enqueueMsg(TriPortId sender,
                       TriAddress address,
                       TriComponentId receiver,
                       TriMessage message)
Enqueues the message to the TE.

Parameters:
sender -
address -
receiver -
message -

setFilterAndStartThread

public void setFilterAndStartThread(Jpcap jpcap,
                                    java.lang.String netDeviceId,
                                    RecordOfValue macFilterList)
Sets the filter for capturing messages from the net device and starts the capturing.

Parameters:
jpcap - The instance of capturing
netDeviceId - The net device for capturing
macFilterList - The MAC address list for filtering

triSend

public TriStatus triSend(TriComponentId componentId,
                         TriPortId tsiPortId,
                         TriAddress address,
                         TriMessage message)

triSutActionInformal

public TriStatus triSutActionInformal(java.lang.String description)

triSutActionTemplate

public TriStatus triSutActionTemplate(TriActionTemplate at)

triSAReset

public TriStatus triSAReset()

handlePacket

public void handlePacket(Packet packet)

log

public void log(java.lang.String logMessage)
Logs TestAdapter events

Parameters:
logMessage -

getIPv6AddressString

public java.lang.String getIPv6AddressString(byte[] msg)
Prepares a IP address string from a given IP packet

Parameters:
msg - The IP packet
Returns:
The IP address string

prepareHashMaps

public TriStatus prepareHashMaps(Value ipv6Param,
                                 java.lang.String ipField,
                                 java.lang.String macField,
                                 java.lang.String netDeviceId,
                                 PTCAndRole par)
Prepares the send and receive HashMaps for the given configurations.

Parameters:
ipv6Param - The IPv6 Parameter given in the config message
ipField - The name of the IP field
macField - The name of the MAC field
netDeviceId - The net device to store
par - The componentId included to enter into sendMap, the entry for the rcvMap
Returns:
Returns a TRI status.

scopCancel

public TriStatus scopCancel()
Stops the receiver thread for the upper layer.

Returns:
The TriStatus

IPv6TestAdapter v47 build 0.8

Submit a bug or feature

IPv6TestAdapter is a trademark or registered trademark of Testing Technologies IST GmbH in Germany and possibly in other countries.
(c) Copyright 2001-2005 Testing Technologies IST GmbH, Rosenthaler Str. 13, 10119 Berlin, Germany. All Rights Reserved.