Exemplo n.º 1
0
/// <summary>Determines applicability of method using stored values.</summary>
///
/// <remarks>This version calls the static version with 4 arguments, passing
/// the stored values.</remarks>
///
/// <returns>True if method is applicable.</returns>
bool WageIndLC::isApplicable()
{
  if (isApplicable(workerData, piaData, lawChange, entDate)) {
    setApplicable(APPLICABLE);
    return(true);
  }
  return(false);
}
Exemplo n.º 2
0
  void 
  SCENBList::getParticleNeighbourhood(const Particle& part, 
				       const GNeighbourList::nbHoodFunc& func) const
  {
#ifdef DYNAMO_DEBUG
    if (!isApplicable(part))
      M_throw() << "This complexNBlist entry ("
		<< name << ") is not valid for this particle (" 
		<< part.getID() << ") yet it is being used anyway!";
#endif

//    static_cast<const GNeighbourList&>(*Sim->globals[nblistID])
//      .getParticleNeighbourhood(part, func);
  }
Exemplo n.º 3
0
void BookmarkIterator::nextOne()
{
    // kDebug() << "BookmarkIterator::nextOne";

    // Look for an interesting bookmark
    while (!m_bookmarkList.isEmpty()) {
        KBookmark bk = m_bookmarkList.takeFirst();
        if (bk.hasParent() && isApplicable(bk)) {
            m_bk = bk;
            doAction();
            // Async action started, we'll have to come back later
            return;
        }
    }
    if (m_bookmarkList.isEmpty()) {
        holder()->removeIterator(this); // deletes "this"
        return;
    }
}
Exemplo n.º 4
0
void OpenAction::execute() {
	if (isApplicable(getUser()->getRaid()->getState())) {
		getUser()->getRaid()->setCurrentRoom(getUser()->getRaid()->getShip()->openDoor());
	}
	
}