jmri
Interface ConditionalAction

All Known Implementing Classes:
DefaultConditionalAction

public interface ConditionalAction

The consequent of the antecedent of the conditional proposition. The data for the action to be taken when a Conditional calculates to True

Author:
Pete Cressman Copyright (C) 2009

Method Summary
 int getActionData()
          Integer data for action
 String getActionDataString()
           
 String getActionString()
          String data for action
 String getDeviceName()
          Name of the device or element that is effected
 ActionListener getListener()
           
 int getOption()
          Options on when action is taken
 String getOptionString()
          return String name of the option for this consequent type
 Sound getSound()
          get Sound file
 Timer getTimer()
           
 int getType()
          The consequent device or element type
 String getTypeString()
          return String name of this consequent type
 boolean isTimerActive()
           
 void setActionData(int actionData)
           
 void setActionData(String actionData)
          Sets action data from user's name for it
 void setActionString(String actionString)
           
 void setDeviceName(String deviceName)
           
 void setListener(ActionListener listener)
           
 void setOption(int option)
           
 void setOption(String option)
          Sets option from user's name for it
 void setTimer(Timer timer)
           
 void setType(int type)
           
 void setType(String type)
          Sets type from user's name for it
 void startTimer()
           
 void stopTimer()
           
 

Method Detail

getActionData

int getActionData()
Integer data for action


getActionDataString

String getActionDataString()

getActionString

String getActionString()
String data for action


getDeviceName

String getDeviceName()
Name of the device or element that is effected


getOption

int getOption()
Options on when action is taken


getOptionString

String getOptionString()
return String name of the option for this consequent type


getType

int getType()
The consequent device or element type


getTypeString

String getTypeString()
return String name of this consequent type


setActionData

void setActionData(String actionData)
Sets action data from user's name for it


setActionData

void setActionData(int actionData)

setActionString

void setActionString(String actionString)

setDeviceName

void setDeviceName(String deviceName)

setOption

void setOption(String option)
Sets option from user's name for it


setOption

void setOption(int option)

setType

void setType(String type)
Sets type from user's name for it


setType

void setType(int type)

getTimer

Timer getTimer()

setTimer

void setTimer(Timer timer)

isTimerActive

boolean isTimerActive()

startTimer

void startTimer()

stopTimer

void stopTimer()

getListener

ActionListener getListener()

setListener

void setListener(ActionListener listener)

getSound

Sound getSound()
get Sound file



Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads