com.cmpware.cmp
Class Network

java.lang.Object
  extended by com.cmpware.cmp.Network
Direct Known Subclasses:
LinearArray, LM32_demo, NoNetwork, Ring, Torus, VT_ECE_5530

public abstract class Network
extends java.lang.Object

This defines the generic network interface. This is the class used to construct the interprocessor communication network.

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

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Constructor Summary
Network()
           
 
Method Summary
abstract  void connectNetwork(Multiprocessor mp, java.lang.String link)
          This method is called to build the interconnection network for the newly allocated processor array.
static Network get(java.lang.String networkClassName)
          This method is used to return a newly allocated network definition class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

Network

public Network()
Method Detail

connectNetwork

public abstract void connectNetwork(Multiprocessor mp,
                                    java.lang.String link)
                             throws LinkException
This method is called to build the interconnection network for the newly allocated processor array.

Parameters:
mp - The multiprocessor to be connected.
link - 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.

get

public static Network get(java.lang.String networkClassName)
                   throws NetworkException
This method is used to return a newly allocated network definition class.

Parameters:
networkClassName - The name of the class in the cmp.cmpware.cmp.models package used to define the network interconnect for this multiprocessor.
Throws:
NetworkException - if there is any problem allocating or accessing the Network class.