public class CMSComponentDescription extends Object implements IComponentDescription, Cloneable
PROCESSINGSTATE_IDLE, PROCESSINGSTATE_READY, PROCESSINGSTATE_RUNNING, STATE_ACTIVE, STATE_INITIATED, STATE_SUSPENDED, STATE_TERMINATED, STATE_TRANSIT
Constructor and Description |
---|
CMSComponentDescription()
Create a new CESComponentDescription.
|
CMSComponentDescription(IComponentIdentifier cid,
String type,
boolean master,
boolean daemon,
boolean autoshutdown,
boolean synchronous,
boolean persistable,
IMonitoringService.PublishEventLevel monitoring,
String modelname,
String localtype,
IResourceIdentifier rid,
long creationtime,
IComponentIdentifier creator,
Cause cause,
boolean systemcomponent)
Create a new CMSComponentDescription.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(IComponentIdentifier child)
Add a child component.
|
Object |
clone()
Clone a component description.
|
boolean |
equals(Object o)
Test if this description equals another description.
|
String[] |
getBreakpoints()
Get the enabled breakpoints (if any).
|
Cause |
getCause()
Get the cause.
|
IComponentIdentifier[] |
getChildren()
Get the children.
|
long |
getCreationTime()
Get the creation time.
|
IComponentIdentifier |
getCreator()
Get the creator.
|
String |
getLocalType()
Get the localtype.
|
String |
getModelName()
Get the model name.
|
IMonitoringService.PublishEventLevel |
getMonitoring()
Get the monitoring.
|
IComponentIdentifier |
getName()
Get the componentidentifier of this CESComponentDescription.
|
String |
getOwnership()
Get the ownership of this CESComponentDescription.
|
IResourceIdentifier |
getResourceIdentifier()
Get the resource identifier.
|
String |
getState()
Get the state of this CESComponentDescription.
|
String |
getStepInfo()
Get the stepinfo.
|
String |
getType()
Get the component type.
|
int |
hashCode()
Get the hash code of this description.
|
boolean |
isAutoShutdown()
Get the autoshutdown.
|
boolean |
isDaemon()
Get the daemon.
|
boolean |
isMaster()
Get the master.
|
boolean |
isPersistable()
Get the persistable flag.
|
boolean |
isSynchronous()
Get the synchronous flag.
|
boolean |
isSystemComponent()
Test if it is a system component.
|
void |
removeChild(IComponentIdentifier child)
Remove a child component.
|
void |
setAutoShutdown(boolean autoshutdown)
Set the autoshutdown.
|
void |
setBreakpoints(String[] breakpoints)
Set the enabled breakpoints (if any).
|
void |
setCause(Cause cause)
Set the cause.
|
void |
setCreationTime(long creationtime)
Set the creationtime.
|
void |
setCreator(IComponentIdentifier creator)
Set the creator.
|
void |
setDaemon(boolean daemon)
Set the daemon.
|
void |
setLocalType(String localtype)
Set the localtype.
|
void |
setMaster(boolean master)
Set the master.
|
void |
setModelName(String modelname)
Set the model name.
|
void |
setMonitoring(IMonitoringService.PublishEventLevel monitoring)
Set the monitoring.
|
void |
setName(IComponentIdentifier name)
Set the componentidentifier of this CESComponentDescription.
|
void |
setOwnership(String ownership)
Set the ownership of this CESComponentDescription.
|
void |
setPersistable(boolean persistable)
Set the persistable flag.
|
void |
setResourceIdentifier(IResourceIdentifier rid)
Set the resource identifier.
|
void |
setState(String state)
Set the state of this CESComponentDescription.
|
void |
setStepInfo(String stepinfo)
Set the stepinfo.
|
void |
setSynchronous(boolean synchronous)
Set the synchronous flag.
|
void |
setSystemComponent(boolean systemcomponent)
Set the system component flag.
|
void |
setType(String type)
Set the component type.
|
String |
toString()
Get a string representation of this description.
|
public CMSComponentDescription()
public CMSComponentDescription(IComponentIdentifier cid, String type, boolean master, boolean daemon, boolean autoshutdown, boolean synchronous, boolean persistable, IMonitoringService.PublishEventLevel monitoring, String modelname, String localtype, IResourceIdentifier rid, long creationtime, IComponentIdentifier creator, Cause cause, boolean systemcomponent)
public String getState()
getState
in interface IComponentDescription
public void setState(String state)
state
- the value to be setpublic IComponentIdentifier getName()
getName
in interface IComponentDescription
public void setName(IComponentIdentifier name)
name
- the value to be setpublic IResourceIdentifier getResourceIdentifier()
getResourceIdentifier
in interface IComponentDescription
public void setResourceIdentifier(IResourceIdentifier rid)
rid
- The resource identifier.public void addChild(IComponentIdentifier child)
child
- The child component.public void removeChild(IComponentIdentifier child)
child
- The child component.public IComponentIdentifier[] getChildren()
public String getOwnership()
getOwnership
in interface IComponentDescription
public void setOwnership(String ownership)
ownership
- the value to be setpublic String getType()
getType
in interface IComponentDescription
public void setType(String type)
type
- The component type name (e.g. 'BDI Agent').public String[] getBreakpoints()
getBreakpoints
in interface IComponentDescription
public void setBreakpoints(String[] breakpoints)
breakpoints
- The enabled breakpoints.public boolean isMaster()
isMaster
in interface IComponentDescription
public void setMaster(boolean master)
master
- The master to set.public boolean isDaemon()
isDaemon
in interface IComponentDescription
public void setDaemon(boolean daemon)
daemon
- The daemon to set.public boolean isAutoShutdown()
isAutoShutdown
in interface IComponentDescription
public void setAutoShutdown(boolean autoshutdown)
autoshutdown
- The autoshutdown to set.public String getModelName()
getModelName
in interface IComponentDescription
public void setModelName(String modelname)
modelname
- The model name.public String getLocalType()
getLocalType
in interface IComponentDescription
public void setLocalType(String localtype)
localtype
- The localtype to set.public long getCreationTime()
getCreationTime
in interface IComponentDescription
public void setCreationTime(long creationtime)
creationtime
- The creationtime to set.public IComponentIdentifier getCreator()
getCreator
in interface IComponentDescription
public void setCreator(IComponentIdentifier creator)
creator
- The creator to set.public Cause getCause()
getCause
in interface IComponentDescription
public void setCause(Cause cause)
cause
- The cause to set.public boolean isSynchronous()
isSynchronous
in interface IComponentDescription
public void setSynchronous(boolean synchronous)
synchronous
- The synchronous flag.public boolean isPersistable()
isPersistable
in interface IComponentDescription
public void setPersistable(boolean persistable)
persistable
- The persistable flag.public IMonitoringService.PublishEventLevel getMonitoring()
getMonitoring
in interface IComponentDescription
public void setMonitoring(IMonitoringService.PublishEventLevel monitoring)
monitoring
- The monitoring to set.public String getStepInfo()
public void setStepInfo(String stepinfo)
stepinfo
- The stepinfo to set.public boolean isSystemComponent()
isSystemComponent
in interface IComponentDescription
public void setSystemComponent(boolean systemcomponent)
systemcomponent
- The flag.public boolean equals(Object o)
public int hashCode()
public String toString()
Copyright © 2015. All Rights Reserved.