public class CMSComponentDescription extends java.lang.Object implements IComponentDescription, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoshutdown
The auto shutdown flag.
|
protected java.lang.String[] |
breakpoints
The breakpoints.
|
protected Cause |
cause
The cause.
|
protected java.util.Set<IComponentIdentifier> |
children
Attribute for children.
|
protected long |
creationtime
The creation time.
|
protected IComponentIdentifier |
creator
The creator.
|
protected boolean |
daemon
The daemon flag.
|
protected java.lang.String |
localtype
The local type name (from parent).
|
protected boolean |
master
The master flag.
|
protected java.lang.String |
modelname
The model name.
|
protected IMonitoringService.PublishEventLevel |
monitoring
The monitoring flag.
|
protected IComponentIdentifier |
name
Attribute for slot component identifier.
|
protected java.lang.String |
ownership
Attribute for slot ownership.
|
protected boolean |
persistable
The persistable flag.
|
protected IResourceIdentifier |
rid
The resource identifier.
|
protected java.lang.String |
state
Attribute for slot state.
|
protected java.lang.String |
stepinfo
The step info for debugging.
|
protected boolean |
synchronous
The synchronous flag.
|
protected boolean |
systemcomponent
Boolean flag if it is a system component.
|
protected java.lang.String |
type
The component type.
|
STATE_ACTIVE, STATE_INITIATED, STATE_SUSPENDED, STATE_TERMINATED, STATE_TRANSIT
Constructor and Description |
---|
CMSComponentDescription()
Create a new CESComponentDescription.
|
CMSComponentDescription(IComponentIdentifier cid,
java.lang.String type,
boolean master,
boolean daemon,
boolean autoshutdown,
boolean synchronous,
boolean persistable,
IMonitoringService.PublishEventLevel monitoring,
java.lang.String modelname,
java.lang.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.
|
java.lang.Object |
clone()
Clone a component description.
|
boolean |
equals(java.lang.Object o)
Test if this description equals another description.
|
java.lang.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.
|
java.lang.String |
getLocalType()
Get the localtype.
|
java.lang.String |
getModelName()
Get the model name.
|
IMonitoringService.PublishEventLevel |
getMonitoring()
Get the monitoring.
|
IComponentIdentifier |
getName()
Get the componentidentifier of this CESComponentDescription.
|
java.lang.String |
getOwnership()
Get the ownership of this CESComponentDescription.
|
IResourceIdentifier |
getResourceIdentifier()
Get the resource identifier.
|
java.lang.String |
getState()
Get the state of this CESComponentDescription.
|
java.lang.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(java.lang.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(java.lang.String localtype)
Set the localtype.
|
void |
setMaster(boolean master)
Set the master.
|
void |
setModelName(java.lang.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(java.lang.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(java.lang.String state)
Set the state of this CESComponentDescription.
|
void |
setSynchronous(boolean synchronous)
Set the synchronous flag.
|
void |
setSystemComponent(boolean systemcomponent)
Set the system component flag.
|
void |
setType(java.lang.String type)
Set the component type.
|
java.lang.String |
toString()
Get a string representation of this description.
|
protected java.lang.String state
protected IComponentIdentifier name
protected IResourceIdentifier rid
protected java.util.Set<IComponentIdentifier> children
protected java.lang.String ownership
protected java.lang.String type
protected java.lang.String[] breakpoints
protected boolean master
protected boolean daemon
protected boolean autoshutdown
protected boolean synchronous
protected boolean persistable
protected IMonitoringService.PublishEventLevel monitoring
protected java.lang.String modelname
protected java.lang.String localtype
protected long creationtime
protected IComponentIdentifier creator
protected Cause cause
protected java.lang.String stepinfo
protected boolean systemcomponent
public CMSComponentDescription()
public CMSComponentDescription(IComponentIdentifier cid, java.lang.String type, boolean master, boolean daemon, boolean autoshutdown, boolean synchronous, boolean persistable, IMonitoringService.PublishEventLevel monitoring, java.lang.String modelname, java.lang.String localtype, IResourceIdentifier rid, long creationtime, IComponentIdentifier creator, Cause cause, boolean systemcomponent)
public java.lang.String getState()
getState
in interface IComponentDescription
public void setState(java.lang.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 java.lang.String getOwnership()
getOwnership
in interface IComponentDescription
public void setOwnership(java.lang.String ownership)
ownership
- the value to be setpublic java.lang.String getType()
getType
in interface IComponentDescription
public void setType(java.lang.String type)
type
- The component type name (e.g. 'BDI Agent').public java.lang.String[] getBreakpoints()
getBreakpoints
in interface IComponentDescription
public void setBreakpoints(java.lang.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 java.lang.String getModelName()
getModelName
in interface IComponentDescription
public void setModelName(java.lang.String modelname)
modelname
- The model name.public java.lang.String getLocalType()
getLocalType
in interface IComponentDescription
public void setLocalType(java.lang.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 boolean isSystemComponent()
isSystemComponent
in interface IComponentDescription
public void setSystemComponent(boolean systemcomponent)
systemcomponent
- The flag.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object