c99d72a179
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
46 lines
678 B
PHP
46 lines
678 B
PHP
<?php
|
|
/**
|
|
* XCATNodeGroup entity class.
|
|
*/
|
|
class XCATNodeGroup {
|
|
var $name;
|
|
var $nodes;
|
|
|
|
function XCATNodeGroup() {
|
|
$this->nodes = array();
|
|
}
|
|
|
|
function getName() {
|
|
return $this->name;
|
|
}
|
|
|
|
function setName($pName) {
|
|
$this->name = $pName;
|
|
}
|
|
|
|
function getNodes() {
|
|
return $this->nodes;
|
|
}
|
|
|
|
function getStatus() {
|
|
return $this->status;
|
|
}
|
|
|
|
function setNodes($pNodes) {
|
|
$this->nodes = $pNodes;
|
|
}
|
|
|
|
function setStatus($pStatus) {
|
|
$this->status = $pStatus;
|
|
}
|
|
|
|
function addNode($node) {
|
|
$this->nodes[$node->getName()] = $node;
|
|
}
|
|
|
|
function removeNode($node) {
|
|
$this->nodes[$node->getName()] = NULL;
|
|
}
|
|
}
|
|
?>
|