org.ow2.jasmine.jadort.api.entities.topology
Class VMBean

java.lang.Object
  extended by org.ow2.jasmine.jadort.api.entities.topology.VMBean
All Implemented Interfaces:
java.io.Serializable

public class VMBean
extends java.lang.Object
implements java.io.Serializable

Bean represents a VM. In the XSD, each instance of this object is a Balancer.

Author:
Malek Chahine, S. Ali Tokmen
See Also:
Serialized Form

Constructor Summary
VMBean()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 ConnectorBean getConnector()
          Get the VMM connector
 java.lang.Integer getId()
          Get the VM id
 java.lang.String getName()
          Get the VM's name
 java.lang.String getVmm()
          get the VM Manager
 void setConnector(ConnectorBean connector)
          Set the VMM connector
 void setId(java.lang.Integer id)
          Set the VM id
 void setName(java.lang.String name)
          Set the VM's name
 void setVmm(java.lang.String vmm)
          Set the VM Manager
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VMBean

public VMBean()
Method Detail

getId

public java.lang.Integer getId()
Get the VM id

Returns:
the VM id

setId

public void setId(java.lang.Integer id)
Set the VM id

Parameters:
id - the VM id

getName

public java.lang.String getName()
Get the VM's name

Returns:
the VM's name

setName

public void setName(java.lang.String name)
Set the VM's name

Parameters:
name - the VM's name

getConnector

public ConnectorBean getConnector()
Get the VMM connector

Returns:
the VMM connector

setConnector

public void setConnector(ConnectorBean connector)
Set the VMM connector

Parameters:
connector - the VMM connector

setVmm

public void setVmm(java.lang.String vmm)
Set the VM Manager

Parameters:
vmm - le VM manager

getVmm

public java.lang.String getVmm()
get the VM Manager


toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object
Returns:
true if obj is a VMBean and the getId() is the same for both objects, false otherwise.


Copyright © 2010 OW2 Consortium. All Rights Reserved.