org.figure8.join.businessobjects.environment
Class ResourceMapping
java.lang.Object
org.figure8.join.core.EntityObject
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
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 forphysicalEnv
- The physical environment this mapping is for
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.