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

HyperChannelRegistry

HyperView V3.2 — class
version V3.2 class

Summary

This class sets up new Channels

Source file: HyperChannelRegistry.java

Hierarchy

Extends: none

Implements: HyperChannelConstants

Referenced HyperView classes

Media files used

Declaration & members

public class HyperChannelRegistry implements HyperChannelConstants

Declared in src/com/multiversesocial/hyperview/HyperChannelRegistry.java, lines 7–262. 11 field(s), 1 constructor(s), 12 method(s). Every member has an anchor you can link to (e.g. HyperChannelRegistry.html#<id>).

Fields (11)

DeclarationValue / initializerDescriptionSource
public static HyperChannel[] channel= new HyperChannel[MAX_CHANNELS]Array of all Channelsline 13
public static int channelID= 0No comment in source; name appears in 2 other source file(s): ChannelControlPane, ServerChannelPane.line 15
public static HyperLinkedList[] channelInputVectorList= new HyperLinkedList[MAX_CHANNELS]No comment in source; assigned in synch(), makeChannels(); name appears in 3 other source file(s): ChannelControlPane, HyperNBInputHandler, ServerChannelPane.line 17
public static HyperLinkedList channelIOList= new HyperLinkedList("ChannelIOList")No comment in source; assigned in synch(); name appears in 5 other source file(s): ChannelControlPane, HyperChannel, HyperNBInputHandler, HyperNBOutputHandler ….line 19
public static HyperLinkedList[] channelOutputVectorList= new HyperLinkedList[MAX_CHANNELS]No comment in source; assigned in synch(), makeChannels(); name appears in 3 other source file(s): ChannelControlPane, HyperNBOutputHandler, ServerChannelPane.line 18
static HyperChannelRegistry channelRegistry= new HyperChannelRegistry()No comment in source; assigned in getRegistry(), getChannel(), getChannelRegistry(); name appears in 2 other source file(s): ChannelControlPane, ServerChannelPane.line 11
public static volatile boolean channelsCreated= falseNo comment in source; not referenced by name in this type’s methods.line 20
static int channelSpaceSize= MAX_CHANNELSSo you can assign preferences to the channel.line 10
public static boolean[] impendingChannelIO= new boolean[MAX_CHANNELS]No comment in source; assigned in synch(), makeChannels(); name appears in 4 other source file(s): ChannelControlPane, HyperNBInputHandler, HyperNBOutputHandler, ServerChannelPane.line 14
public static int totalChannels= 0No comment in source; assigned in getChannel(), synch(); used in find(), paint(); name appears in 5 other source file(s): ChannelControlPane, HyperChannel, HyperNBInputHandler, HyperNBOutputHandler ….line 16

Constructors (1)

SignatureDescriptionSource
HyperChannelRegistry()1 statement(s); calls super().line 27

Methods (12)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
static synchronized HyperChannel find(String tName)5 statement(s); calls tName.equals().line 118
static synchronized HyperChannel getChannel(String tName)8 statement(s); calls makeChannels(), tName.equals(); creates HyperChannelRegistry, HyperChannel.line 51
static synchronized HyperChannel getChannel(int tIndex) throws ChannelIndexException7 statement(s); calls makeChannels(); creates ChannelIndexException, HyperChannelRegistry.line 97
static synchronized HyperChannel[] getChannelList()2 statement(s); calls makeChannels().line 32
static synchronized HyperChannelRegistry getChannelRegistry()2 statement(s); creates HyperChannelRegistry.line 132
static HyperChannelRegistry getRegistry()2 statement(s); creates HyperChannelRegistry.line 42
public HyperLinkedList load()Returns new HyperLinkedList().line 229
private static void makeChannels()2 statement(s); creates ChannelTempLink, HyperLinkedList.line 216
public void paint(Graphics g)Draw a simple channel registry summary (Cont channel table overview).line 239
public int save()Returns 0.line 234
public static void synch(Object tInfo) throws IllegalChannelSynchException6 statement(s); calls makeChannels(); creates IllegalChannelSynchException.line 144

Examples

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

static call — ChannelControlPane.java, line 75

   75  channelRegistry = HyperChannelRegistry.getChannelRegistry();

declaration — HyperChannel.java, line 40

   40  static HyperChannelRegistry hyperChannelRegistry;
Hits--