fi.helsinki.dacopan.model
Class StaticVariable

java.lang.Object
  extended by fi.helsinki.dacopan.model.StaticVariable

public class StaticVariable
extends java.lang.Object

A variable with a static value specific to a host, link, protocol or a combination of them.

Version:
$Id: StaticVariable.java,v 1.4 2004/05/06 07:46:32 jbrown-dacopan Exp $
See Also:
VariableDefinition

Field Summary
protected  Host host
          the host this variable is associated with, if any
protected  Link link
          the link this variable is associated with, if any
protected  java.lang.String name
          name of the variable
protected  Protocol protocol
          the protocol this variable is associated with, if any
protected  java.lang.String value
          value of the variable
 
Constructor Summary
StaticVariable(java.lang.String name, java.lang.String value, Host host, Link link, Protocol protocol)
          Creates a static variable with the given name and value (required).
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getFullName()
           
 Host getHost()
           
 Link getLink()
           
 java.lang.String getName()
           
 Protocol getProtocol()
           
 java.lang.String getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
name of the variable


value

protected java.lang.String value
value of the variable


host

protected Host host
the host this variable is associated with, if any


link

protected Link link
the link this variable is associated with, if any


protocol

protected Protocol protocol
the protocol this variable is associated with, if any

Constructor Detail

StaticVariable

public StaticVariable(java.lang.String name,
                      java.lang.String value,
                      Host host,
                      Link link,
                      Protocol protocol)
Creates a static variable with the given name and value (required). One of host, link and protocol must also be specified.

Method Detail

getName

public java.lang.String getName()

getFullName

public java.lang.String getFullName()

getValue

public java.lang.String getValue()

getHost

public Host getHost()

getLink

public Link getLink()

getProtocol

public Protocol getProtocol()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


© Dacopan2 team, 2005-