TC Java
2011 Version

gov.nih.nlm.nls.tc.Lib
Class Count1f

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Lib.Countf
      extended by gov.nih.nlm.nls.tc.Lib.Count1f

public class Count1f
extends Countf

This class provides count object with 1 score in float format.

History:

Version:
V-2011
Author:
NLM Lexical Systems Group

Field Summary
 
Fields inherited from class gov.nih.nlm.nls.tc.Lib.Countf
BY_COUNT1, BY_COUNT2, name_
 
Constructor Summary
Count1f()
          Create a Count1f object (default).
Count1f(float count1)
          Create a Count1f object by specifying the score.
Count1f(java.lang.String name)
          Create a Count1f object by specifying the score.
Count1f(java.lang.String name, float count1)
          Create a Count1f object by specifying the name and score.
 
Method Summary
 float GetCount(int index)
          Get the score of the Count1f object by specifying index.
 float GetCount1()
          Get the score of the Count1f object.
 void SetCount1(float count)
          Set the score of the Count1f object.
 
Methods inherited from class gov.nih.nlm.nls.tc.Lib.Countf
GetName, SetName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Count1f

public Count1f()
Create a Count1f object (default).


Count1f

public Count1f(java.lang.String name)
Create a Count1f object by specifying the score.

Parameters:
name - name of the Count1f object

Count1f

public Count1f(float count1)
Create a Count1f object by specifying the score.

Parameters:
count1 - score of the Count1f object

Count1f

public Count1f(java.lang.String name,
               float count1)
Create a Count1f object by specifying the name and score.

Parameters:
name - name of the Count1f object
count1 - score of the Count1f object
Method Detail

SetCount1

public void SetCount1(float count)
Set the score of the Count1f object.

Parameters:
count - score of the Count1f object

GetCount1

public float GetCount1()
Get the score of the Count1f object.

Returns:
score of the Count1f object

GetCount

public float GetCount(int index)
Get the score of the Count1f object by specifying index.

Overrides:
GetCount in class Countf
Returns:
score of the Count1f object

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine