org.processmining.exporting.petrinet.cpnexport.HLImplementation
Class HLResource

java.lang.Object
  extended by org.processmining.exporting.petrinet.cpnexport.HLImplementation.HLResource
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HighLevelResource

public class HLResource
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, HighLevelResource

Represents a resource. In the future, more fields can be added to, e.g., specify the working scheme of a resource.

Author:
arozinat, rmans
See Also:
Serialized Form

Constructor Summary
HLResource(java.lang.String name)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Makes a shallow copy of the object.
 boolean equals(java.lang.Object obj)
          Compares the specified object with this resource for equality.
 java.lang.String getName()
          Retrieves the name of this resource.
 int hashCode()
          Returns the hascode for a HighLevelResource object.
 void setName(java.lang.String name)
          Sets the name of this resource.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HLResource

public HLResource(java.lang.String name)
Constructor.

Parameters:
name - the name of the resource
Method Detail

getName

public java.lang.String getName()
Description copied from interface: HighLevelResource
Retrieves the name of this resource.

Specified by:
getName in interface HighLevelResource
Returns:
the name

setName

public void setName(java.lang.String name)
Description copied from interface: HighLevelResource
Sets the name of this resource.

Specified by:
setName in interface HighLevelResource
Parameters:
name - String the name.

toString

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

equals

public boolean equals(java.lang.Object obj)
Compares the specified object with this resource for equality. Returns true if the given object is also a Resource and have both the same name (without leading and trailing whitespaces).

Specified by:
equals in interface HighLevelResource
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object object to be compared for equality with this resource.
Returns:
boolean if the specified object is equal to this resource

hashCode

public int hashCode()
Description copied from interface: HighLevelResource
Returns the hascode for a HighLevelResource object. The hashcode of a HighLevelResource is defined to be equal to the hashcode value of the name of the HighLevelResource

Specified by:
hashCode in interface HighLevelResource
Overrides:
hashCode in class java.lang.Object
Returns:
int the hashcode value for this highLevelGroup

clone

public java.lang.Object clone()
Makes a shallow copy of the object.

Overrides:
clone in class java.lang.Object
Returns:
Object the cloned object