com.cmpware.cmp.networks
Class LinearArray

java.lang.Object
  extended by com.cmpware.cmp.Network
      extended by com.cmpware.cmp.networks.LinearArray

public class LinearArray
extends Network

This implements Linear Array network. Because the underlying processor array is two-dimensional, this network "snakes" through the array starting at node(0,0) and ending at node(n,n). To avoid 'dangling' links, the last node(n,n)is connected to the first node(0,0) producing a 'circle'.

Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static int EAST
          The address of the 'east' IO register
static int IO_ANCHOR
          The start address of the IO registers
static int NORTH
          The address of the 'north' IO register
static int SOUTH
          The address of the 'south' IO register
static int WEST
          The address of the 'west' IO register
 
Fields inherited from class com.cmpware.cmp.Network
copyright
 
Constructor Summary
LinearArray()
           
 
Method Summary
 void connectNetwork(Multiprocessor mp, java.lang.String linkName)
          This method is called to build the interconnection network for the newly allocated processor array.
 
Methods inherited from class com.cmpware.cmp.Network
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IO_ANCHOR

public static int IO_ANCHOR
The start address of the IO registers


NORTH

public static int NORTH
The address of the 'north' IO register


EAST

public static int EAST
The address of the 'east' IO register


SOUTH

public static int SOUTH
The address of the 'south' IO register


WEST

public static int WEST
The address of the 'west' IO register

Constructor Detail

LinearArray

public LinearArray()
Method Detail

connectNetwork

public void connectNetwork(Multiprocessor mp,
                           java.lang.String linkName)
                    throws LinkException
Description copied from class: Network
This method is called to build the interconnection network for the newly allocated processor array.

Specified by:
connectNetwork in class Network
Parameters:
mp - The multiprocessor to be connected.
linkName - The name of the link type to be used to build this network. This shouyld be a fully qualified class name. This parameter may or may not be used in this method, depending on the type of network constructed.
Throws:
LinkException - if there is a problem allocating or using the Link objects.