jflexcrf
Class Feature

java.lang.Object
  extended by jflexcrf.Feature

public class Feature
extends java.lang.Object

The Class Feature.


Field Summary
static int EDGE_FEATURE1
          The Constant EDGE_FEATURE1.
static int STAT_FEATURE1
          The Constant STAT_FEATURE1.
static int UNKNOWN_FEATURE
          The Constant UNKNOWN_FEATURE.
 
Constructor Summary
Feature()
          Instantiates a new feature.
Feature(java.lang.String line, java.util.Map cpStr2Int, java.util.Map lbStr2Int)
          Instantiates a new feature.
Feature(java.lang.String line, java.util.Map cpStr2Int, java.util.Map lbStr2Int, java.util.Map fmap)
          Instantiates a new feature.
 
Method Summary
 void eFeature1Init(int y, int yp)
          E feature1 init.
 void eFeature1Init(int y, int yp, java.util.Map fmap)
          E feature1 init.
 int index()
          Index.
 int index(java.util.Map fmap)
          Index.
 void sFeature1Init(int y, int cp)
          S feature1 init.
 void sFeature1Init(int y, int yp, java.util.Map fmap)
          S feature1 init.
 int strId2Idx(java.util.Map fmap)
          Str id2 idx.
 int strId2IdxAdd(java.util.Map fmap)
          Str id2 idx add.
 java.lang.String toString(java.util.Map cpInt2Str, java.util.Map lbInt2Str)
          To string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_FEATURE

public static final int UNKNOWN_FEATURE
The Constant UNKNOWN_FEATURE.

See Also:
Constant Field Values

EDGE_FEATURE1

public static final int EDGE_FEATURE1
The Constant EDGE_FEATURE1.

See Also:
Constant Field Values

STAT_FEATURE1

public static final int STAT_FEATURE1
The Constant STAT_FEATURE1.

See Also:
Constant Field Values
Constructor Detail

Feature

public Feature()
Instantiates a new feature.


Feature

public Feature(java.lang.String line,
               java.util.Map cpStr2Int,
               java.util.Map lbStr2Int)
Instantiates a new feature.

Parameters:
line - the line
cpStr2Int - the cp str2 int
lbStr2Int - the lb str2 int

Feature

public Feature(java.lang.String line,
               java.util.Map cpStr2Int,
               java.util.Map lbStr2Int,
               java.util.Map fmap)
Instantiates a new feature.

Parameters:
line - the line
cpStr2Int - the cp str2 int
lbStr2Int - the lb str2 int
fmap - the fmap
Method Detail

eFeature1Init

public void eFeature1Init(int y,
                          int yp)
E feature1 init.

Parameters:
y - the y
yp - the yp

eFeature1Init

public void eFeature1Init(int y,
                          int yp,
                          java.util.Map fmap)
E feature1 init.

Parameters:
y - the y
yp - the yp
fmap - the fmap

sFeature1Init

public void sFeature1Init(int y,
                          int cp)
S feature1 init.

Parameters:
y - the y
cp - the cp

sFeature1Init

public void sFeature1Init(int y,
                          int yp,
                          java.util.Map fmap)
S feature1 init.

Parameters:
y - the y
yp - the yp
fmap - the fmap

strId2Idx

public int strId2Idx(java.util.Map fmap)
Str id2 idx.

Parameters:
fmap - the fmap
Returns:
the int

strId2IdxAdd

public int strId2IdxAdd(java.util.Map fmap)
Str id2 idx add.

Parameters:
fmap - the fmap
Returns:
the int

index

public int index()
Index.

Returns:
the int

index

public int index(java.util.Map fmap)
Index.

Parameters:
fmap - the fmap
Returns:
the int

toString

public java.lang.String toString(java.util.Map cpInt2Str,
                                 java.util.Map lbInt2Str)
To string.

Parameters:
cpInt2Str - the cp int2 str
lbInt2Str - the lb int2 str
Returns:
the string