xcat-core/xCAT-web/lib/XCAT/XCATNodeGroup/XCATNodeGroup.class.php
jbjohnso c99d72a179 Initial xCAT 2.0 import
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2007-10-26 22:44:33 +00:00

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;
}
}
?>