org.figure8.join.businessobjects.environment
Class ResourceMapping

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.environment.ResourceMapping
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ResourceMapping
extends EntityObject

This is an entity representing a mapping between a physical infrastructure resource (of any category and any type) and a physical environment.
ResourceMappings are by definition volatile : they have a startDate and an endDate when mapping ends. Active mappings are those having endDate not set.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
ResourceMapping()
          Creates a new instance of ResourceMapping
ResourceMapping(AbstractResource resource, PhysicalEnvironment physicalEnv)
          Creates a new ResourceMapping with mandatory parameters.
 
Method Summary
 void close()
          Close this mapping (ie. make it inactive)
 java.util.Date getEndDate()
           
 PhysicalEnvironment getPhysicalEnvironment()
           
 AbstractResource getResource()
           
 java.util.Date getStartDate()
           
 boolean isActive()
           
 void setEndDate(java.util.Date endDate)
           
 void setPhysicalEnvironment(PhysicalEnvironment physicalEnvironment)
           
 void setResource(AbstractResource resource)
           
 void setStartDate(java.util.Date startDate)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMapping

public ResourceMapping()
Creates a new instance of ResourceMapping


ResourceMapping

public ResourceMapping(AbstractResource resource,
                       PhysicalEnvironment physicalEnv)
Creates a new ResourceMapping with mandatory parameters.

Parameters:
resource - The resource this mapping is for
physicalEnv - The physical environment this mapping is for
Method Detail

getStartDate

public java.util.Date getStartDate()
Returns:
The date this mapping has started being active

setStartDate

public void setStartDate(java.util.Date startDate)
Parameters:
startDate - The date this mapping has started being active

getEndDate

public java.util.Date getEndDate()
Returns:
The date this mapping has stopped being active

setEndDate

public void setEndDate(java.util.Date endDate)
Parameters:
endDate - The date this mapping has stopped being active

getResource

public AbstractResource getResource()
Returns:
The resource this mapping is for

setResource

public void setResource(AbstractResource resource)
Parameters:
resource - The resource this mapping is for

getPhysicalEnvironment

public PhysicalEnvironment getPhysicalEnvironment()
Returns:
The physical environment this mapping is for

setPhysicalEnvironment

public void setPhysicalEnvironment(PhysicalEnvironment physicalEnvironment)
Parameters:
physicalEnvironment - The physical environment this mapping is for

isActive

public boolean isActive()
Returns:
Flag telling if this mapping is currently active

close

public void close()
Close this mapping (ie. make it inactive)



Copyright © 2005-2008 Join. All Rights Reserved.