You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

89 lines
2.4 KiB

//==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <dxp@cs.bham.uc.uk> (University of Birmingham)
// * Andrew Hinton <ug60axh@cs.bham.uc.uk> (University of Birmingham)
//
//------------------------------------------------------------------------------
//
// This file is part of PRISM.
//
// PRISM is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// PRISM is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with PRISM; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//==============================================================================
package parser;
import java.util.Vector;
import prism.PrismException;
import simulator.*;
public class PCTLInit extends PCTLFormula
{
// type check
public void typeCheck() throws PrismException
{
// set type
setType(Expression.BOOLEAN);
}
// find all formulas (i.e. locate idents which are formulas)
public PCTLFormula findAllFormulas(FormulaList formulaList) throws PrismException
{
return this;
}
// expand any formulas
public PCTLFormula expandFormulas(FormulaList formulaList) throws PrismException
{
return this;
}
// find all constants (i.e. locate idents which are constants)
public PCTLFormula findAllConstants(ConstantList constantList) throws PrismException
{
return this;
}
// find all variables (i.e. locate idents which are variables)
public PCTLFormula findAllVars(Vector varIdents, Vector varTypes) throws PrismException
{
return this;
}
/**
* Convert and build simulator data structures
*/
public long toSimulator(SimulatorEngine sim ) throws SimulatorException
{
throw new SimulatorException("Simulator does not currently support init in PCTL Formulae");
}
// convert to string
public String toString()
{
return "\"init\"";
}
}
//------------------------------------------------------------------------------