MetaTF API

MetaTF.Runtime
Class NumTraceField

java.lang.Object
  |
  +--MetaTF.Runtime.TraceField
        |
        +--MetaTF.Runtime.NumTraceField

public class NumTraceField
extends TraceField

A TraceField representing a field with numeric type

Version:
rel-1-2 ($Revision: 1.1 $, $Date: 2000/12/15 16:35:32 $),
Author:
Richard Jones

Fields inherited from class MetaTF.Runtime.TraceField
encodingType, name
 
Constructor Summary
NumTraceField(java.lang.String n, int it)
          Allocate a new object representing a encoding of a field of numeric type
NumTraceField(java.lang.String n, int it, long i1)
          Allocate a new object representing a encoding of a field of numeric type
NumTraceField(java.lang.String n, int it, long i1, long i2)
          Allocate a new object representing a encoding of a field of numeric type
 
Method Summary
(package private)  long getValue()
           
(package private)  long getValue2()
           
(package private)  void setInterpretationType(int i)
          Set the encoding type of this field (none, default, ...)
(package private)  void setValue(long v)
          Set the first encoding value
(package private)  void setValue(java.lang.String s)
          Set the first encoding value
(package private)  void setValue2(long v)
          Set the second encoding value
 
Methods inherited from class MetaTF.Runtime.TraceField
getInterpretationType
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumTraceField

public NumTraceField(java.lang.String n,
                     int it,
                     long i1,
                     long i2)
Allocate a new object representing a encoding of a field of numeric type
Parameters:
n - the name of the field
it - the encoding
i1 - the first encoding argument
i2 - the first encoding argument

NumTraceField

public NumTraceField(java.lang.String n,
                     int it,
                     long i1)
Allocate a new object representing a encoding of a field of numeric type
Parameters:
n - the name of the field
it - the encoding
i1 - the first encoding argument

NumTraceField

public NumTraceField(java.lang.String n,
                     int it)
Allocate a new object representing a encoding of a field of numeric type
Parameters:
n - the name of the field
it - the encoding
Method Detail

setInterpretationType

void setInterpretationType(int i)
                     throws BadRecordException
Description copied from class: TraceField
Set the encoding type of this field (none, default, ...)
Overrides:
setInterpretationType in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
i - the encoding
Throws:
BadRecordException - IF the encoding does not match the type of the field

setValue

void setValue(long v)
        throws BadRecordException
Description copied from class: TraceField
Set the first encoding value
Overrides:
setValue in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
i - the value
Throws:
BadRecordException - IF the value is inappropriate for this type of field

setValue

void setValue(java.lang.String s)
        throws BadRecordException
Description copied from class: TraceField
Set the first encoding value
Overrides:
setValue in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
s - the value (a string)
Throws:
BadRecordException - IF the value is inappropriate for this type of field

setValue2

void setValue2(long v)
         throws BadRecordException
Description copied from class: TraceField
Set the second encoding value
Overrides:
setValue2 in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
i - the value
Throws:
BadRecordException - IF the value is inappropriate for this type of field

getValue

long getValue()

getValue2

long getValue2()

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF