INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Channel

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.Channel
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FeedBack, Null, StdIn, StdOut

public class Channel
extends java.util.Observable
implements java.io.Serializable

Transmorpher graph channel representation

Since:
jdk 1.3 / SAX 2.0
Author:
Jerome.Euzenat@inrialpes.fr
See Also:
Serialized Form

Field Summary
protected  Port in
          in port of this channel
protected  java.lang.String name
          name of the channel
protected  boolean nullified
          Description of the Field
protected  Port out
          out port of this channel
protected  Process process
          the process that contains this channel
protected  boolean visited
          Description of the Field
 
Constructor Summary
Channel()
          Creates a simple instance of Channel
Channel(java.lang.String name, Process process)
          Creates an instance of Channel with a name and a process
Channel(java.lang.String name, Process process, Port in, Port out)
          Creates an instance of Channel with a name and a process
 
Method Summary
 void clearNull()
          Description of the Method
 void clearVisited()
          Description of the Method
 java.lang.String getName()
          Gets the name attribute of the Channel object
 Process getProcess()
          Gets the process that owns this Channel object
 Port in()
          Returns the in port of this channel
 boolean nullifiedP()
          Description of the Method
 void nullify()
          Description of the Method
 Port out()
          Returns the out port of this channel
 void setIn(Port port)
          Sets the in port of the Channel object
 void setName(java.lang.String newName)
          Sets the name attribute of the Channel object
 void setOut(Port port)
          Sets the out port of the Channel object
 void setVisited()
          Sets the visited attribute of the Channel object
 java.lang.String toString()
          Returns a description of this channel in a string
 boolean visitedP()
          Description of the Method
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

in

protected Port in
in port of this channel


out

protected Port out
out port of this channel


name

protected java.lang.String name
name of the channel


visited

protected boolean visited
Description of the Field


nullified

protected boolean nullified
Description of the Field


process

protected Process process
the process that contains this channel

Constructor Detail

Channel

public Channel()
Creates a simple instance of Channel


Channel

public Channel(java.lang.String name,
               Process process)
Creates an instance of Channel with a name and a process

Parameters:
name - The name of the channel to create
process - The process that contains the channel

Channel

public Channel(java.lang.String name,
               Process process,
               Port in,
               Port out)
Creates an instance of Channel with a name and a process

Parameters:
name - The name of the channel to create
process - The process that contains the channel
in - The in port of the channel
out - The out port of the channel
Method Detail

toString

public java.lang.String toString()
Returns a description of this channel in a string

Overrides:
toString in class java.lang.Object
Returns:
a string : [Channel "name" IN : "in port name" OUT="out port name"]

in

public Port in()
Returns the in port of this channel

Returns:
The in port

out

public Port out()
Returns the out port of this channel

Returns:
The out port

setIn

public void setIn(Port port)
Sets the in port of the Channel object

Parameters:
port - The new in port

setOut

public void setOut(Port port)
Sets the out port of the Channel object

Parameters:
p - The new out port

setName

public void setName(java.lang.String newName)
Sets the name attribute of the Channel object

Parameters:
newName - The new name value

getName

public java.lang.String getName()
Gets the name attribute of the Channel object

Returns:
The name value

getProcess

public Process getProcess()
Gets the process that owns this Channel object

Returns:
The process

clearNull

public void clearNull()
Description of the Method


nullify

public void nullify()
Description of the Method


clearVisited

public void clearVisited()
Description of the Method


setVisited

public void setVisited()
Sets the visited attribute of the Channel object


visitedP

public boolean visitedP()
Description of the Method

Returns:
Description of the Return Value

nullifiedP

public boolean nullifiedP()
Description of the Method

Returns:
Description of the Return Value

INRIA & FluxMedia

..no bottom yet...