uk.ac.man.cs.rainbow.rapa.data
Class NamedType

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.rapa.data.NamedType
All Implemented Interfaces:
Argument, Serializable, Type

public class NamedType
extends Object
implements Type, Serializable

See Also:
Serialized Form

Constructor Summary
NamedType(String name)
           
 
Method Summary
 void compatableWith(Argument arg)
           
 boolean equals(Object o)
           
 int hashCode()
           
 Type subst(GeneralSubstitution s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedType

public NamedType(String name)
Method Detail

compatableWith

public void compatableWith(Argument arg)
Specified by:
compatableWith in interface Argument
Following copied from interface: uk.ac.man.cs.rainbow.rapa.data.Argument
Throws:
CompatabilityFailure - If you are not allowed to map from this argument to the given one.

subst

public Type subst(GeneralSubstitution s)
Specified by:
subst in interface Type

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object