ucot.model.object
Class Method

java.lang.Object
  extended by ucot.model.object.Method
All Implemented Interfaces:
java.io.Serializable

public class Method
extends java.lang.Object
implements java.io.Serializable

This class represents method of an entity.

Author:
pajumasu
See Also:
Serialized Form

Field Summary
private  java.util.Set<Entity> influenced
          The list of entities that can be indluenced by this method.
private  java.lang.String name
          The name of the method.
static long serialVersionUID
           
 
Constructor Summary
Method(java.lang.String name)
          Creates new method called name.
 
Method Summary
 void addInfluence(Entity entity)
          Adds influence to this method.
 java.util.Set<Entity> getInfluenced()
          Returns the set of entities that are influenced by this method.
 java.lang.String getName()
          Returns the name of the method.
 void removeInfluence(Entity entity)
          Removes influence from this method.
protected  void setName(java.lang.String name)
          Sets the name of the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

name

private java.lang.String name
The name of the method.


influenced

private java.util.Set<Entity> influenced
The list of entities that can be indluenced by this method.

Constructor Detail

Method

public Method(java.lang.String name)
Creates new method called name. Methods name is converted to lowercase.

Parameters:
name -
Method Detail

setName

protected void setName(java.lang.String name)
Sets the name of the method. Methods name is converted to lowercase.

Parameters:
name -

getInfluenced

public java.util.Set<Entity> getInfluenced()
Returns the set of entities that are influenced by this method.

Returns:
set of entities that are influenced by this method

addInfluence

public void addInfluence(Entity entity)
Adds influence to this method.

Parameters:
entity -

removeInfluence

public void removeInfluence(Entity entity)
Removes influence from this method.

Parameters:
entity -

getName

public java.lang.String getName()
Returns the name of the method.

Returns:
name of the method