Codota Logo
ClockType.getId
Code IndexAdd Codota to your IDE (free)

How to use
getId
method
in
org.drools.ClockType

Best Java code snippets using org.drools.ClockType.getId (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public static ClockType resolveClockType( String id ) {
  if( PSEUDO_CLOCK.getId().equalsIgnoreCase( id ) ) {
    return PSEUDO_CLOCK;
  } else if( REALTIME_CLOCK.getId().equalsIgnoreCase( id ) ) {
    return REALTIME_CLOCK;
  }
  throw new IllegalArgumentException( "Illegal enum value '" + id + "' for ClockType" );
}
origin: org.switchyard.components/switchyard-component-common-rules

/**
 * Creates a new KnowledgeSessionConfiguration given the specified component implementation config.
 * @param cic the component implementation config
 * @return the config
 */
public static KnowledgeSessionConfiguration getSessionConfiguration(ComponentImplementationConfig cic) {
  KnowledgeSessionConfiguration ksessionConfig = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(getProperties(cic));
  ClockType clock = cic.getModel().getClock();
  if (clock != null) {
    switch (clock) {
      case REALTIME:
        ksessionConfig.setOption(ClockTypeOption.get(org.drools.ClockType.REALTIME_CLOCK.getId()));
        break;
      case PSEUDO:
        ksessionConfig.setOption(ClockTypeOption.get(org.drools.ClockType.PSEUDO_CLOCK.getId()));
        break;
    }
  }
  return ksessionConfig;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

private void init(Properties properties,
         ClassLoader... classLoader) {
  this.classLoader = ClassLoaderUtil.getClassLoader( classLoader,
                            getClass(),
                            false );
  this.immutable = false;
  this.chainedProperties = new ChainedProperties( "session.conf",
                          this.classLoader );
  if ( properties != null ) {
    this.chainedProperties.addProperties( properties );
  }
  setKeepReference( Boolean.valueOf( this.chainedProperties.getProperty( KeepReferenceOption.PROPERTY_NAME,
                                      "true" ) ).booleanValue() );
  
  setBeliefSystemType( BeliefSystemType.resolveBeliefSystemType( this.chainedProperties.getProperty( BeliefSystemTypeOption.PROPERTY_NAME,
                                                    BeliefSystemType.SIMPLE.getId())) );
  setClockType( ClockType.resolveClockType( this.chainedProperties.getProperty( ClockTypeOption.PROPERTY_NAME,
                                         ClockType.REALTIME_CLOCK.getId() ) ) );
  setQueryListenerClass( this.chainedProperties.getProperty( QueryListenerOption.PROPERTY_NAME,
                                QueryListenerOption.STANDARD.getAsString() ) );
  setTimerJobFactoryType( TimerJobFactoryType.resolveTimerJobFactoryType( this.chainedProperties.getProperty( TimerJobFactoryOption.PROPERTY_NAME,
                                                        TimerJobFactoryType.DEFUALT.getId() ) ) );
}
org.droolsClockTypegetId

Popular methods of ClockType

  • resolveClockType
  • toExternalForm

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now