CTL.Types
Class FID

java.lang.Object
  extended by CTL.Measure
      extended by CTL.Types.FID
All Implemented Interfaces:
Writable

public class FID
extends Measure
implements Writable

FunctionID


Field Summary
private  short ID
          Numerical ID
private  java.lang.String name
          Fully-qualified name
 
Constructor Summary
FID(short ID, java.lang.String name)
          Generate a new FID
 
Method Summary
 java.lang.String _class()
          Extract the class name from the fully-qualified name of this function
 java.lang.String _class(java.lang.String suffix)
          Extract the class name from this FunctionID and use a custom suffix
 short ID()
          Get the numerical ID
 java.lang.String name()
          Get the fully-qualified name
 void read(SerialIn in)
          Read a FunctionID from a stream
 java.lang.String toString()
          Get a string representation of this object
 void write(SerialOut out)
          Write this FunctionID to a stream
 
Methods inherited from class CTL.Measure
size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

private short ID
Numerical ID


name

private java.lang.String name
Fully-qualified name

Constructor Detail

FID

public FID(short ID,
           java.lang.String name)
Generate a new FID

Parameters:
ID - Numerical ID
name - Fully-qualified name
Method Detail

toString

public java.lang.String toString()
Get a string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
String

ID

public short ID()
Get the numerical ID

Returns:
ID

name

public java.lang.String name()
Get the fully-qualified name

Returns:
Name

_class

public java.lang.String _class()
Extract the class name from the fully-qualified name of this function

Returns:
Class name

_class

public java.lang.String _class(java.lang.String suffix)
Extract the class name from this FunctionID and use a custom suffix

Parameters:
suffix - Custom suffix
Returns:
Class name

write

public void write(SerialOut out)
           throws java.io.IOException
Write this FunctionID to a stream

Specified by:
write in interface Writable
Parameters:
out - Output stream
Throws:
java.io.IOException

read

public void read(SerialIn in)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException
Read a FunctionID from a stream

Specified by:
read in interface Writable
Parameters:
in - Input stream
Throws:
java.io.IOException
java.lang.ClassNotFoundException