Newer
Older
* @author STF 424_ITS_Test_Platform
* @version $URL$
* $Id$
*/
package org.etsi.codec;
import java.math.BigInteger;
import org.etsi.ttcn.tci.BooleanValue;
import org.etsi.ttcn.tci.CharstringValue;
import org.etsi.ttcn.tci.EnumeratedValue;
import org.etsi.ttcn.tci.FloatValue;
import org.etsi.ttcn.tci.IntegerValue;
import org.etsi.ttcn.tci.OctetstringValue;
import org.etsi.ttcn.tci.RecordOfValue;
import org.etsi.ttcn.tci.RecordValue;
import org.etsi.ttcn.tci.Type;
import org.etsi.ttcn.tci.Value;
/**
* This interface is used to provide vendor specific implementations of TCI-CD interface
*
* Note that the TCI Codec Interface (TCI-CD) describes the operations a TTCN-3 Executable is required to implement and the operations a codec implementation for a certain encoding scheme shall provide to the TE
*
* See ETSI ES 201 873-6 V4.2.1 - Clause 7.3.2.1 TCI-CD required
*/
public interface ITciCDWrapper {
/**
* Constructs and returns a basic TTCN-3 integer type
*
* See ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getInteger
* @return An instance of Type representing a TTCN-3 integer type
*/
public IntegerValue setInteger(final Integer value);
/**
* Constructs and sets a basic TTCN-3 integer type
*
* See ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getInteger
*/
public void setInteger(IntegerValue intValue, final Integer value);
/**
* Constructs and returns a basic TTCN-3 big integer type
*
* @see ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getInteger
* @return An instance of Type representing a TTCN-3 integer type
*/
public IntegerValue setInteger(final BigInteger value);
/**
* Constructs and returns a basic TTCN-3 big integer type
*
* @see ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getInteger
* @return An instance of Type representing a TTCN-3 integer type
*/
public void setInteger(final BigInteger value, IntegerValue setInt);
/**
* Constructs and returns a basic integer type
*
* See ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getInteger
* @return An instance of Type representing a TTCN-3 integer type
*/
public int getInteger(final IntegerValue iv);
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/**
* Constructs and returns a basic big integer type
*
* @see ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getInteger
* @return An instance of Type representing a TTCN-3 integer type
*/
public long/*TODO BigInteger*/ getBigInteger(final IntegerValue iv);
/**
* Constructs and returns a basic TTCN-3 octet string type
*
* See ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.2 getOctetstring
* @return An instance of Type representing a TTCN-3 octet string type
*/
public OctetstringValue getOctetstring();
/**
* Constructs and returns a basic TTCN-3 string type
* @return An instance of Type representing a TTCN-3 string type
*/
public CharstringValue getCharstringValue();
/**
* Constructs and returns a basic TTCN-3 float type
*
* See ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.3 getFloat
* @return An instance of Type representing a TTCN-3 float type
*/
public FloatValue getFloat();
/**
* Constructs and returns a basic TTCN-3 float type
*
* @return An instance of Type representing a TTCN-3 float type
*/
public Value getUnionValue(final Type decodingHypothesis, final String variantName);
/**
* Constructs and returns a basic TTCN-3 float type
*
* @return An instance of Type representing a TTCN-3 float type
*/
public RecordValue getRecordValue(final String typeName);
/**
* Constructs and returns a basic TTCN-3 float type
*
* @return An instance of Type representing a TTCN-3 float type
*/
public RecordOfValue getRecordOfValue(final String typeName);
/**
* Constructs and returns a basic TTCN-3 boolean type
*
* See ETSI ES 201 873-6 V4.2.1 - 7.3.2.1.4 getBoolean
* @return An instance of Type representing a TTCN-3 boolean type
*/
public BooleanValue getBoolean();
/**
* Constructs and returns a basic TTCN-3 enumerated type
*
* @return An instance of Type representing a TTCN-3 enumerated type
*/
public EnumeratedValue getEnumValue(String string);
/**
* Convert the specified type string into a Type object
* @param type The type in string format
* @return A Type object
*/
public Type getTypeForName(final String type);
void logDebug(String debugMessage);
void logError(String errorMessage);
// FIXME To be continued