Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperNodeReadVector
Source: src/com/multiversesocial/hyperview/HyperNodeReadVector.java

HyperNodeReadVector

HyperView V3.2 — class
version V3.2 class

Summary

Similar to HyperView - runVector() "PROPER" implementation of this class is thus "DO SOME OPERATION IN function() AND RETURN"

Source file: HyperNodeReadVector.java

Hierarchy

Extends: Linkable

Implements: HyperNodeVectorConstants

Referenced HyperView classes

Media files used

Declaration & members

public class HyperNodeReadVector extends Linkable implements HyperNodeVectorConstants

Declared in src/com/multiversesocial/hyperview/HyperNodeReadVector.java, lines 13–245. 14 field(s), 3 constructor(s), 4 method(s). Every member has an anchor you can link to (e.g. HyperNodeReadVector.html#<id>).

Fields (14)

DeclarationValue / initializerDescriptionSource
byte[] buffer= new byte[readBufferSize]La Ring bufferline 29
HyperChannel channel= nullTodo: make into a list. just 1 4 now.line 15
IOReply ioReply= nullNo comment in source; assigned in cleanUp().line 16
int iteration= 0No comment in source; assigned in function(), cleanUp(), initialize().line 23
int lastIteration= -1No comment in source; assigned in initialize().line 24
int number= -1No comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize().line 22
HyperConnectionNode parentNode= nullNo comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(); used in function().line 26
ByteBuffer readBuffer= nullNo comment in source; assigned in HyperNodeReadVector(), cleanUp(); used in function(), initialize().line 27
int readBufferSize= BufferConstants.DEFAULT_BUFFER_SIZEATM this is 512 bytes or IP/MRUline 21
int readBytes= 0No comment in source; name appears in 3 other source file(s): HyperChannel, HyperConnectionNode, HyperNBInputHandler.line 30
int readVectorFlags= 0No comment in source; assigned in initialize().line 18
SocketChannel socketChannel= nullNo comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(); used in function().line 25
StateMachine stateMachine= nullNo comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(); used in function().line 17
int type= 0No comment in source; not referenced by name in this type’s methods.line 19

Constructors (3)

SignatureDescriptionSource
HyperNodeReadVector(SocketChannel tChannel, HyperConnectionNode tNode)1 statement(s); calls this().line 32
HyperNodeReadVector(SocketChannel tChannel, HyperConnectionNode tNode, ByteBuffer tByteBuffer)8 statement(s); calls super(), ByteBuffer.allocate().line 37
HyperNodeReadVector(HyperChannel tChannel, HyperConnectionNode tNode, ByteBuffer tByteBuffer)7 statement(s); calls super(), ByteBuffer.allocate().line 63

Methods (4)

SignatureDescriptionSource
public void cleanUp()8 statement(s).line 181
public int function()5 statement(s); calls readBuffer.clear(), socketChannel.read(), readBuffer.flip(), readBuffer.get(), wait().line 81
public void initialize(SocketChannel tChannel, HyperConnectionNode tNode)9 statement(s); calls readBuffer.clear().line 194
public void initialize(HyperChannel tChannel, HyperConnectionNode tNode)8 statement(s); calls readBuffer.clear().line 215

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Linkable (7 fields, 2 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList(), setName(String)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — HyperConnectionNode.java, line 605

  605  new HyperNodeReadVector(tChannel,this,(ByteBuffer)null);

static call — HyperNBInputHandler.java, line 19

   19  Base IO   -> HyperNodeReadVector.function();

declaration — HyperChannel.java, line 545

  545  HyperNodeReadVector tReadVector = channelNode.getReadVector(this,tReply);
Hits--