jp.go.aist.rtm.RTC.buffer
クラス NullBuffer<DataType>

java.lang.Object
  上位を拡張 jp.go.aist.rtm.RTC.buffer.NullBuffer<DataType>
型パラメータ:
DataType - バッファ内のデータ型を指定します。

public class NullBuffer<DataType>
extends java.lang.Object

バッファ長1固定のバッファ実装です。


コンストラクタの概要
NullBuffer()
          デフォルトコンストラクタです。
NullBuffer(long size)
          コンストラクタです。
 
メソッドの概要
 ReturnCode advanceRptr()
           advanceRptr
 ReturnCode advanceRptr(int n)
           advanceRptr
 ReturnCode advanceWptr()
           advanceWptr
 ReturnCode advanceWptr(int n)
           advanceWptr
 boolean empty()
           empty
 boolean full()
           full
 DataType get()
          バッファからデータを読み込みます。
 ReturnCode get(DataType value)
           get
 void init(Properties prop)
           init
 boolean isEmpty()
          バッファが空かどうか判定します。
 boolean isFull()
          バッファがフルかどうか判定します。
 boolean isNew()
          バッファ中に、まだ読み取られていないデータがあるかどうか判定します。
 int length()
          バッファ長を取得します。
 ReturnCode length(int n)
           length
 ReturnCode put(DataType data)
          バッファにデータを書き込みます。
 boolean read(DataRef<DataType> valueRef)
          バッファからデータを読み込みます。
 int readable()
           readable
 ReturnCode reset()
           reset
 DataType rptr()
           rptr
 DataType rptr(int n)
           rptr
 DataType wptr()
           wptr
 DataType wptr(int n)
           wptr
 int writable()
           writable
 ReturnCode write(DataType value)
          バッファにデータを書き込みます。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

NullBuffer

public NullBuffer(long size)

コンストラクタです。

パラメータ:
size - バッファ長

NullBuffer

public NullBuffer()

デフォルトコンストラクタです。

メソッドの詳細

length

public int length()

バッファ長を取得します。

戻り値:
バッファ長

write

public ReturnCode write(DataType value)

バッファにデータを書き込みます。

パラメータ:
value - 書き込むデータ
戻り値:
書き込みに成功した場合はtrueを、さもなくばfalseを返します。

read

public boolean read(DataRef<DataType> valueRef)

バッファからデータを読み込みます。

パラメータ:
valueRef - 読み込んだデータを受け取るためのDataRefオブジェクト
戻り値:
読み込みに成功した場合はtrueを、さもなくばfalseを返します。

isFull

public boolean isFull()

バッファがフルかどうか判定します。

戻り値:
バッファがフルならばtrue、さもなくばfalseを返します。

isEmpty

public boolean isEmpty()

バッファが空かどうか判定します。

戻り値:
バッファが空ならばtrue、さもなくばfalseを返します。

put

public ReturnCode put(DataType data)

バッファにデータを書き込みます。

パラメータ:
data - 書き込むデータ

get

public DataType get()

バッファからデータを読み込みます。

戻り値:
読み込んだデータ

isNew

public boolean isNew()

バッファ中に、まだ読み取られていないデータがあるかどうか判定します。

戻り値:
読み取られていないデータがあればtrueを、さもなくばfalseを返します。

get

public ReturnCode get(DataType value)

get

This function is not implemented.

パラメータ:
value -
戻り値:
ReturnCode

init

public void init(Properties prop)

init

This function is not implemented.

パラメータ:
prop -

reset

public ReturnCode reset()

reset

This function is not implemented.

戻り値:
ReturnCode

wptr

public DataType wptr(int n)

wptr

This function is not implemented.

パラメータ:
n -
戻り値:
DataType

wptr

public DataType wptr()

wptr

This function is not implemented.

戻り値:
DataType

advanceWptr

public ReturnCode advanceWptr(int n)

advanceWptr

This function is not implemented.

パラメータ:
n -
戻り値:
ReturnCode

advanceWptr

public ReturnCode advanceWptr()

advanceWptr

This function is not implemented.

戻り値:
ReturnCode

writable

public int writable()

writable

This function is not implemented.

戻り値:
int

full

public boolean full()

full

This function is not implemented.

戻り値:
boolean

rptr

public DataType rptr(int n)

rptr

This function is not implemented.

パラメータ:
n -
戻り値:
DataType

rptr

public DataType rptr()

rptr

This function is not implemented.

戻り値:
DataType

advanceRptr

public ReturnCode advanceRptr(int n)

advanceRptr

This function is not implemented.

パラメータ:
n -
戻り値:
ReturnCode

advanceRptr

public ReturnCode advanceRptr()

advanceRptr

This function is not implemented.

戻り値:
ReturnCode

readable

public int readable()

readable

This function is not implemented.

戻り値:
int

empty

public boolean empty()

empty

This function is not implemented.

戻り値:
boolean

length

public ReturnCode length(int n)

length

This function is not implemented.

パラメータ:
n -
戻り値:
ReturnCode